| Property | Value |
| Model name | Synapse AdventureWorks |
| Technical name | |
| Description | Model based on the AdventureWorks sample databases |
| Author | |
| Version | |
| Synchronization Id | e42cbfb0-bba4-11ea-91a7-efa8d96c78e7 |
| DB vendor | Synapse |
| Modeling methodology | |
| Tenant | |
| Account ID | |
| Resource group | |
| Subscription | |
| Preferred location | |
| Tags | |
| Performance level | |
| Collation | |
| Maintenance schedule | |
| Geo-backup policy | |
| Lineage capture | |
| Polyglot models | |
| Comments |
| Property | Value |
| Business Name | Name |
| Technical name | |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Has max length | |
| Length | 50 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | false |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | |
| Remarks |
| Property | Value |
| Business Name | NameStyle |
| Technical name | |
| Id | |
| Type | numeric |
| Subtype | bit |
| Default | ((0)) |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | false |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | |
| Remarks |
| Property | Value |
| Business Name | Phone |
| Technical name | |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Has max length | |
| Length | 25 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | false |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | |
| Remarks |
| Property | Value |
| Business Name | Flag |
| Technical name | |
| Id | |
| Type | numeric |
| Subtype | bit |
| Default | 1 |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | false |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | |
| Remarks |
| Property | Value |
| Business Name | OrderNumber |
| Technical name | |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Has max length | |
| Length | 25 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | false |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | |
| Remarks |
| Property | Value |
| Business Name | AccountNumber |
| Technical name | |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Has max length | |
| Length | 15 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | false |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | |
| Remarks |
| Property | Value |
| Schema name | dbo |
| Technical name | |
| Activated | true |
| Comments | |
| If not exist | |
| Remarks | |
| Database name | hacksqlpool |
| Property | Value |
| Table | AdventureWorksDWBuildVersion |
| Technical name | |
| Activated | true |
| Id | |
| Schema | dbo |
| Additional properties | false |
| $ref | |
| Comments | |
| If not exist | |
| Distribution | round_robin |
| Persistence | regular |
| SQL pool indexing | clustered columnstore index |
| Partition | |
| CTAS query | |
| Range for values | |
| Boundary value | |
| Remarks |
| Column | Type | Req | Key | Description | Comments |
| DBVersion | nvarchar(50) | true | pk | ||
| VersionDate | datetime | true |
| Property | Value |
| Business Name | DBVersion |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 50 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Primary key | true |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | 10.00.3590.01 |
| Remarks |
| Property | Value |
| Business Name | VersionDate |
| Technical name | |
| Activated | true |
| Id | |
| Type | datetime |
| Subtype | datetime |
| Comments | |
| Not null | true |
| Masked with function | |
| Primary key | |
| Unique | |
| Pattern | |
| Default | |
| Default constraint name | |
| Enum | |
| Faker function | |
| Sample | 2012-07-07T19:49:42.000Z |
| Remarks |
| Property | Value |
| Primary key | |
| [1] Constraint name | |
| Key | |
| Unique key | |
| [1] Constraint name | |
| Key | |
| Alternate key | |
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"title": "AdventureWorksDWBuildVersion",
"additionalProperties": false,
"properties": {
"DBVersion": {
"type": "string"
},
"VersionDate": {
"type": "string",
"maxLength": 24
}
},
"required": [
"DBVersion",
"VersionDate"
]
}{
"DBVersion": "10.00.3590.01",
"VersionDate": "2012-07-07T19:49:42.000Z"
}IF NOT EXISTS (SELECT * FROM sys.databases WHERE name = N'[hacksqlpool]') begin CREATE DATABASE [hacksqlpool]; USE [hacksqlpool]; end; CREATE SCHEMA [dbo]; CREATE TABLE [dbo].[AdventureWorksDWBuildVersion] ( [DBVersion] NVARCHAR(50) PRIMARY KEY NONCLUSTERED NOT ENFORCED NOT NULL, [VersionDate] DATETIME NOT NULL )WITH ( CLUSTERED COLUMNSTORE INDEX, DISTRIBUTION = ROUND_ROBIN );
| Property | Value |
| Table | DatabaseLog |
| Technical name | |
| Activated | true |
| Id | |
| Schema | dbo |
| Additional properties | false |
| $ref | |
| Comments | |
| If not exist | |
| Distribution | round_robin |
| Persistence | regular |
| SQL pool indexing | clustered columnstore index |
| Partition | |
| CTAS query | |
| Range for values | |
| Boundary value | |
| Remarks |
| Column | Type | Req | Key | Description | Comments |
| DatabaseLogID | int | true | pk | ||
| PostTime | datetime | true | |||
| DatabaseUser | nvarchar(128) | true | |||
| Event | nvarchar(128) | true | |||
| Schema | nvarchar(128) | false | |||
| Object | nvarchar(128) | false | |||
| TSQL | nvarchar(4000) | true |
| Property | Value |
| Business Name | DatabaseLogID |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | true |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 99 |
| Remarks |
| Property | Value |
| Business Name | PostTime |
| Technical name | |
| Activated | true |
| Id | |
| Type | datetime |
| Subtype | datetime |
| Comments | |
| Not null | true |
| Masked with function | |
| Primary key | |
| Unique | |
| Pattern | |
| Default | |
| Default constraint name | |
| Enum | |
| Faker function | |
| Sample | 2010-01-15T11:01:11.130Z |
| Remarks |
| Property | Value |
| Business Name | DatabaseUser |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 128 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | dbo |
| Remarks |
| Property | Value |
| Business Name | Event |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 128 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | ALTER_TABLE |
| Remarks |
| Property | Value |
| Business Name | Schema |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 128 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | dbo |
| Remarks |
| Property | Value |
| Business Name | Object |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 128 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | FactFinance |
| Remarks |
| Property | Value |
| Business Name | TSQL |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 4000 |
| JSON Types | string |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | ALTER TABLE [dbo].[FactFinance] ADD CONSTRAINT [FK_FactFinance_DimAccount] FOREIGN KEY ([AccountKey]) REFERENCES [dbo].[DimAccount] ([AccountKey]),CONSTRAINT [FK_FactFinance_DimDepartmentGroup] FOREIGN KEY ([DepartmentGroupKey]) REFERENCES [dbo].[DimDepartmentGroup] ([DepartmentGroupKey]),CONSTRAINT [FK_FactFinance_DimOrganization] FOREIGN KEY ([OrganizationKey]) REFERENCES [dbo].[DimOrganization] ([OrganizationKey]),CONSTRAINT [FK_FactFinance_DimScenario] FOREIGN KEY ([ScenarioKey]) REFERENCES [dbo].[DimScenario] ([ScenarioKey]),CONSTRAINT [FK_FactFinance_DimDate] FOREIGN KEY ([DateKey]) REFERENCES [dbo].[DimDate] ([DateKey]); |
| Remarks |
| Property | Value |
| Primary key | |
| [1] Constraint name | |
| Key | |
| Unique key | |
| [1] Constraint name | |
| Key | |
| Alternate key | |
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"title": "DatabaseLog",
"additionalProperties": false,
"properties": {
"DatabaseLogID": {
"type": "number"
},
"PostTime": {
"type": "string",
"maxLength": 24
},
"DatabaseUser": {
"type": "string"
},
"Event": {
"type": "string"
},
"Schema": {
"type": "string"
},
"Object": {
"type": "string"
},
"TSQL": {
"type": "string"
}
},
"required": [
"DatabaseLogID",
"PostTime",
"DatabaseUser",
"Event",
"TSQL"
]
}{
"DatabaseLogID": 99,
"PostTime": "2010-01-15T11:01:11.130Z",
"DatabaseUser": "dbo",
"Event": "ALTER_TABLE",
"Schema": "dbo",
"Object": "FactFinance",
"TSQL": "ALTER TABLE [dbo].[FactFinance] ADD CONSTRAINT [FK_FactFinance_DimAccount] FOREIGN KEY ([AccountKey]) REFERENCES [dbo].[DimAccount] ([AccountKey]),CONSTRAINT [FK_FactFinance_DimDepartmentGroup] FOREIGN KEY ([DepartmentGroupKey]) REFERENCES [dbo].[DimDepartmentGroup] ([DepartmentGroupKey]),CONSTRAINT [FK_FactFinance_DimOrganization] FOREIGN KEY ([OrganizationKey]) REFERENCES [dbo].[DimOrganization] ([OrganizationKey]),CONSTRAINT [FK_FactFinance_DimScenario] FOREIGN KEY ([ScenarioKey]) REFERENCES [dbo].[DimScenario] ([ScenarioKey]),CONSTRAINT [FK_FactFinance_DimDate] FOREIGN KEY ([DateKey]) REFERENCES [dbo].[DimDate] ([DateKey]);"
}IF NOT EXISTS (SELECT * FROM sys.databases WHERE name = N'[hacksqlpool]') begin CREATE DATABASE [hacksqlpool]; USE [hacksqlpool]; end; CREATE SCHEMA [dbo]; CREATE TABLE [dbo].[DatabaseLog] ( [DatabaseLogID] INT PRIMARY KEY NONCLUSTERED NOT ENFORCED NOT NULL, [PostTime] DATETIME NOT NULL, [DatabaseUser] NVARCHAR(128) NOT NULL, [Event] NVARCHAR(128) NOT NULL, [Schema] NVARCHAR(128), [Object] NVARCHAR(128), [TSQL] NVARCHAR(4000) NOT NULL )WITH ( CLUSTERED COLUMNSTORE INDEX, DISTRIBUTION = ROUND_ROBIN );
| Property | Value |
| Table | DimAccount |
| Technical name | |
| Activated | true |
| Id | |
| Schema | dbo |
| Additional properties | false |
| $ref | |
| Comments | |
| If not exist | |
| Distribution | round_robin |
| Persistence | regular |
| SQL pool indexing | clustered columnstore index |
| Partition | |
| CTAS query | |
| Range for values | |
| Boundary value | |
| Remarks |
| Column | Type | Req | Key | Description | Comments |
| AccountKey | int | true | pk, dk | ||
| ParentAccountKey | int | false | fk | ||
| AccountCodeAlternateKey | int | false | |||
| ParentAccountCodeAlternateKey | int | false | fk | ||
| AccountDescription | nvarchar(50) | false | |||
| AccountType | nvarchar(50) | false | |||
| Operator | nvarchar(50) | false | |||
| CustomMembers | nvarchar(300) | false | |||
| ValueType | nvarchar(50) | false | |||
| CustomMemberOptions | nvarchar(200) | false |
| Property | Value |
| Business Name | AccountKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | true |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 101 |
| Remarks |
| Property | Value |
| Business Name | ParentAccountKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | DimAccount |
| Foreign field | AccountKey |
| Relationship type | Foreign Key |
| Relationship name | fk DimAccount.ParentAccountKey to DimAccount.AccountKey |
| Cardinality | 1..n |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 51 |
| Remarks |
| Property | Value |
| Business Name | AccountCodeAlternateKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 4200 |
| Remarks |
| Property | Value |
| Business Name | ParentAccountCodeAlternateKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | DimAccount |
| Foreign field | AccountKey |
| Relationship type | Foreign Key |
| Relationship name | fk DimAccount.ParentAccountCodeAlternateKey to DimAccount.AccountKey |
| Cardinality | 1..n |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 4110 |
| Remarks |
| Property | Value |
| Business Name | AccountDescription |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 50 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | Trade Sales |
| Remarks |
| Property | Value |
| Business Name | AccountType |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 50 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | Revenue |
| Remarks |
| Property | Value |
| Business Name | Operator |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 50 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | + |
| Remarks |
| Property | Value |
| Business Name | CustomMembers |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 300 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | [Account].[Accounts].[Account Level 04].&[50]/[Account].[Accounts].[Account Level 02].&[97] |
| Remarks |
| Property | Value |
| Business Name | ValueType |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 50 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | Currency |
| Remarks |
| Property | Value |
| Business Name | CustomMemberOptions |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 200 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | |
| Remarks |
| Property | Value |
| Primary key | |
| [1] Constraint name | |
| Key | |
| Unique key | |
| [1] Constraint name | |
| Key | |
| Alternate key | |
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"title": "DimAccount",
"additionalProperties": false,
"properties": {
"AccountKey": {
"type": "number"
},
"ParentAccountKey": {
"type": "number"
},
"AccountCodeAlternateKey": {
"type": "number"
},
"ParentAccountCodeAlternateKey": {
"type": "number"
},
"AccountDescription": {
"type": "string"
},
"AccountType": {
"type": "string"
},
"Operator": {
"type": "string"
},
"CustomMembers": {
"type": "string"
},
"ValueType": {
"type": "string"
},
"CustomMemberOptions": {
"type": "string"
}
},
"required": [
"AccountKey"
]
}{
"AccountKey": 101,
"ParentAccountKey": 51,
"AccountCodeAlternateKey": 4200,
"ParentAccountCodeAlternateKey": 4110,
"AccountDescription": "Trade Sales",
"AccountType": "Revenue",
"Operator": "+",
"CustomMembers": "[Account].[Accounts].[Account Level 04].&[50]/[Account].[Accounts].[Account Level 02].&[97]",
"ValueType": "Currency",
"CustomMemberOptions": "Lorem"
}IF NOT EXISTS (SELECT * FROM sys.databases WHERE name = N'[hacksqlpool]') begin CREATE DATABASE [hacksqlpool]; USE [hacksqlpool]; end; CREATE SCHEMA [dbo]; CREATE TABLE [dbo].[DimAccount] ( [AccountKey] INT PRIMARY KEY NONCLUSTERED NOT ENFORCED NOT NULL, [ParentAccountKey] INT, [AccountCodeAlternateKey] INT, [ParentAccountCodeAlternateKey] INT, [AccountDescription] NVARCHAR(50), [AccountType] NVARCHAR(50), [Operator] NVARCHAR(50), [CustomMembers] NVARCHAR(300), [ValueType] NVARCHAR(50), [CustomMemberOptions] NVARCHAR(200) )WITH ( CLUSTERED COLUMNSTORE INDEX, DISTRIBUTION = ROUND_ROBIN );
| Property | Value |
| Table | DimCurrency |
| Technical name | |
| Activated | true |
| Id | |
| Schema | dbo |
| Additional properties | false |
| $ref | |
| Comments | |
| If not exist | |
| Distribution | round_robin |
| Persistence | regular |
| SQL pool indexing | clustered columnstore index |
| Partition | |
| CTAS query | |
| Range for values | |
| Boundary value | |
| Remarks |
| Column | Type | Req | Key | Description | Comments |
| CurrencyKey | int | true | pk, dk | ||
| CurrencyAlternateKey | nchar(3) | true | |||
| CurrencyName | nvarchar(50) | true |
| Property | Value |
| Business Name | CurrencyKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | true |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 101 |
| Remarks |
| Property | Value |
| Business Name | CurrencyAlternateKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nchar |
| Length | 3 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | KRW |
| Remarks |
| Property | Value |
| Business Name | CurrencyName |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 50 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | Won |
| Remarks |
| Property | Value |
| Primary key | |
| [1] Constraint name | |
| Key | |
| Unique key | |
| [1] Constraint name | |
| Key | |
| Alternate key | |
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"title": "DimCurrency",
"additionalProperties": false,
"properties": {
"CurrencyKey": {
"type": "number"
},
"CurrencyAlternateKey": {
"type": "string"
},
"CurrencyName": {
"type": "string"
}
},
"required": [
"CurrencyKey",
"CurrencyAlternateKey",
"CurrencyName"
]
}{
"CurrencyKey": 101,
"CurrencyAlternateKey": "KRW",
"CurrencyName": "Won"
}IF NOT EXISTS (SELECT * FROM sys.databases WHERE name = N'[hacksqlpool]') begin CREATE DATABASE [hacksqlpool]; USE [hacksqlpool]; end; CREATE SCHEMA [dbo]; CREATE TABLE [dbo].[DimCurrency] ( [CurrencyKey] INT PRIMARY KEY NONCLUSTERED NOT ENFORCED NOT NULL, [CurrencyAlternateKey] NCHAR(3) NOT NULL, [CurrencyName] NVARCHAR(50) NOT NULL )WITH ( CLUSTERED COLUMNSTORE INDEX, DISTRIBUTION = ROUND_ROBIN );
| Property | Value |
| Table | DimCustomer |
| Technical name | |
| Activated | true |
| Id | |
| Schema | dbo |
| Additional properties | false |
| $ref | |
| Comments | |
| If not exist | |
| Distribution | round_robin |
| Persistence | regular |
| SQL pool indexing | clustered columnstore index |
| Partition | |
| CTAS query | |
| Range for values | |
| Boundary value | |
| Remarks |
| Column | Type | Req | Key | Description | Comments |
| CustomerKey | int | true | pk, dk | ||
| GeographyKey | int | false | fk | ||
| CustomerAlternateKey | nvarchar(15) | true | |||
| Title | nvarchar(8) | false | |||
| FirstName | nvarchar(50) | false | |||
| MiddleName | nvarchar(50) | false | |||
| LastName | nvarchar(50) | false | |||
| NameStyle | bit | false | |||
| BirthDate | date | false | |||
| MaritalStatus | nchar(1) | false | |||
| Suffix | nvarchar(10) | false | |||
| Gender | nvarchar(1) | false | |||
| EmailAddress | nvarchar(50) | false | |||
| YearlyIncome | money | false | |||
| TotalChildren | tinyint | false | |||
| NumberChildrenAtHome | tinyint | false | |||
| EnglishEducation | nvarchar(40) | false | |||
| SpanishEducation | nvarchar(40) | false | |||
| FrenchEducation | nvarchar(40) | false | |||
| EnglishOccupation | nvarchar(100) | false | |||
| SpanishOccupation | nvarchar(100) | false | |||
| FrenchOccupation | nvarchar(100) | false | |||
| HouseOwnerFlag | nchar(1) | false | |||
| NumberCarsOwned | tinyint | false | |||
| AddressLine1 | nvarchar(120) | false | |||
| AddressLine2 | nvarchar(120) | false | |||
| Phone | nvarchar(20) | false | |||
| DateFirstPurchase | date | false | |||
| CommuteDistance | nvarchar(15) | false |
| Property | Value |
| Business Name | CustomerKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | true |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 17900 |
| Remarks |
| Property | Value |
| Business Name | GeographyKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | DimGeography |
| Foreign field | GeographyKey |
| Relationship type | Foreign Key |
| Relationship name | fk DimCustomer.GeographyKey to DimGeography.GeographyKey |
| Cardinality | 1..n |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 204 |
| Remarks |
| Property | Value |
| Business Name | CustomerAlternateKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 15 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | AW00017900 |
| Remarks |
| Property | Value |
| Business Name | Title |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 8 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | Ms. |
| Remarks |
| Property | Value |
| Business Name | FirstName |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 50 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | Victoria |
| Remarks |
| Property | Value |
| Business Name | MiddleName |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 50 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | L. |
| Remarks |
| Property | Value |
| Business Name | LastName |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 50 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | Snowden |
| Remarks |
| Property | Value |
| Business Name | NameStyle |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | bit |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | false |
| Remarks |
| Property | Value |
| Business Name | BirthDate |
| Technical name | |
| Activated | true |
| Id | |
| Type | datetime |
| Subtype | date |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Pattern | |
| Default | |
| Default constraint name | |
| Enum | |
| Faker function | |
| Sample | 1942-08-06T00:00:00.000Z |
| Remarks |
| Property | Value |
| Business Name | MaritalStatus |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nchar |
| Length | 1 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | S |
| Remarks |
| Property | Value |
| Business Name | Suffix |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 10 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | |
| Remarks |
| Property | Value |
| Business Name | Gender |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 1 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | F |
| Remarks |
| Property | Value |
| Business Name | EmailAddress |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 50 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | victoria0@adventure-works.com |
| Remarks |
| Property | Value |
| Business Name | YearlyIncome |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | money |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 10000 |
| Remarks |
| Property | Value |
| Business Name | TotalChildren |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | tinyint |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 3 |
| Remarks |
| Property | Value |
| Business Name | NumberChildrenAtHome |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | tinyint |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 0 |
| Remarks |
| Property | Value |
| Business Name | EnglishEducation |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 40 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | Partial College |
| Remarks |
| Property | Value |
| Business Name | SpanishEducation |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 40 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | Estudios universitarios (en curso) |
| Remarks |
| Property | Value |
| Business Name | FrenchEducation |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 40 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | Baccalauréat |
| Remarks |
| Property | Value |
| Business Name | EnglishOccupation |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 100 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | Manual |
| Remarks |
| Property | Value |
| Business Name | SpanishOccupation |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 100 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | Obrero |
| Remarks |
| Property | Value |
| Business Name | FrenchOccupation |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 100 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | Ouvrier |
| Remarks |
| Property | Value |
| Business Name | HouseOwnerFlag |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nchar |
| Length | 1 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | 1 |
| Remarks |
| Property | Value |
| Business Name | NumberCarsOwned |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | tinyint |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 1 |
| Remarks |
| Property | Value |
| Business Name | AddressLine1 |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 120 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | 8, rue de l´Avenir |
| Remarks |
| Property | Value |
| Business Name | AddressLine2 |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 120 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | # 103 |
| Remarks |
| Property | Value |
| Business Name | Phone |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 20 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | 574-555-0100 |
| Remarks |
| Property | Value |
| Business Name | DateFirstPurchase |
| Technical name | |
| Activated | true |
| Id | |
| Type | datetime |
| Subtype | date |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Pattern | |
| Default | |
| Default constraint name | |
| Enum | |
| Faker function | |
| Sample | 2003-06-04T00:00:00.000Z |
| Remarks |
| Property | Value |
| Business Name | CommuteDistance |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 15 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | 1-2 Miles |
| Remarks |
| Property | Value |
| Primary key | |
| [1] Constraint name | |
| Key | |
| Unique key | |
| [1] Constraint name | |
| Key | |
| Alternate key | |
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"title": "DimCustomer",
"additionalProperties": false,
"properties": {
"CustomerKey": {
"type": "number"
},
"GeographyKey": {
"type": "number"
},
"CustomerAlternateKey": {
"type": "string"
},
"Title": {
"type": "string"
},
"FirstName": {
"type": "string"
},
"MiddleName": {
"type": "string"
},
"LastName": {
"type": "string"
},
"NameStyle": {
"type": "number"
},
"BirthDate": {
"type": "string",
"maxLength": 24
},
"MaritalStatus": {
"type": "string"
},
"Suffix": {
"type": "string"
},
"Gender": {
"type": "string"
},
"EmailAddress": {
"type": "string"
},
"YearlyIncome": {
"type": "number"
},
"TotalChildren": {
"type": "number"
},
"NumberChildrenAtHome": {
"type": "number"
},
"EnglishEducation": {
"type": "string"
},
"SpanishEducation": {
"type": "string"
},
"FrenchEducation": {
"type": "string"
},
"EnglishOccupation": {
"type": "string"
},
"SpanishOccupation": {
"type": "string"
},
"FrenchOccupation": {
"type": "string"
},
"HouseOwnerFlag": {
"type": "string"
},
"NumberCarsOwned": {
"type": "number"
},
"AddressLine1": {
"type": "string"
},
"AddressLine2": {
"type": "string"
},
"Phone": {
"type": "string"
},
"DateFirstPurchase": {
"type": "string",
"maxLength": 24
},
"CommuteDistance": {
"type": "string"
}
},
"required": [
"CustomerKey",
"CustomerAlternateKey"
]
}{
"CustomerKey": 17900,
"GeographyKey": 204,
"CustomerAlternateKey": "AW00017900",
"Title": "Ms.",
"FirstName": "Victoria",
"MiddleName": "L.",
"LastName": "Snowden",
"NameStyle": false,
"BirthDate": "1942-08-06T00:00:00.000Z",
"MaritalStatus": "S",
"Suffix": "Lorem",
"Gender": "F",
"EmailAddress": "victoria0@adventure-works.com",
"YearlyIncome": 10000,
"TotalChildren": 3,
"NumberChildrenAtHome": 0,
"EnglishEducation": "Partial College",
"SpanishEducation": "Estudios universitarios (en curso)",
"FrenchEducation": "Baccalauréat",
"EnglishOccupation": "Manual",
"SpanishOccupation": "Obrero",
"FrenchOccupation": "Ouvrier",
"HouseOwnerFlag": "1",
"NumberCarsOwned": 1,
"AddressLine1": "8, rue de l´Avenir",
"AddressLine2": "# 103",
"Phone": "574-555-0100",
"DateFirstPurchase": "2003-06-04T00:00:00.000Z",
"CommuteDistance": "1-2 Miles"
}IF NOT EXISTS (SELECT * FROM sys.databases WHERE name = N'[hacksqlpool]') begin CREATE DATABASE [hacksqlpool]; USE [hacksqlpool]; end; CREATE SCHEMA [dbo]; CREATE TABLE [dbo].[DimCustomer] ( [CustomerKey] INT PRIMARY KEY NONCLUSTERED NOT ENFORCED NOT NULL, [GeographyKey] INT, [CustomerAlternateKey] NVARCHAR(15) NOT NULL, [Title] NVARCHAR(8), [FirstName] NVARCHAR(50), [MiddleName] NVARCHAR(50), [LastName] NVARCHAR(50), [NameStyle] BIT, [BirthDate] DATE, [MaritalStatus] NCHAR(1), [Suffix] NVARCHAR(10), [Gender] NVARCHAR(1), [EmailAddress] NVARCHAR(50), [YearlyIncome] MONEY, [TotalChildren] TINYINT, [NumberChildrenAtHome] TINYINT, [EnglishEducation] NVARCHAR(40), [SpanishEducation] NVARCHAR(40), [FrenchEducation] NVARCHAR(40), [EnglishOccupation] NVARCHAR(100), [SpanishOccupation] NVARCHAR(100), [FrenchOccupation] NVARCHAR(100), [HouseOwnerFlag] NCHAR(1), [NumberCarsOwned] TINYINT, [AddressLine1] NVARCHAR(120), [AddressLine2] NVARCHAR(120), [Phone] NVARCHAR(20), [DateFirstPurchase] DATE, [CommuteDistance] NVARCHAR(15) )WITH ( CLUSTERED COLUMNSTORE INDEX, DISTRIBUTION = ROUND_ROBIN );
| Property | Value |
| Table | DimDate |
| Technical name | |
| Activated | true |
| Id | |
| Schema | dbo |
| Additional properties | false |
| $ref | |
| Comments | |
| If not exist | |
| Distribution | round_robin |
| Persistence | regular |
| SQL pool indexing | clustered columnstore index |
| Partition | |
| CTAS query | |
| Range for values | |
| Boundary value | |
| Remarks |
| Column | Type | Req | Key | Description | Comments |
| DateKey | int | true | pk, dk | ||
| FullDateAlternateKey | date | true | |||
| DayNumberOfWeek | tinyint | true | |||
| EnglishDayNameOfWeek | nvarchar(10) | true | |||
| SpanishDayNameOfWeek | nvarchar(10) | true | |||
| FrenchDayNameOfWeek | nvarchar(10) | true | |||
| DayNumberOfMonth | tinyint | true | |||
| DayNumberOfYear | smallint | true | |||
| WeekNumberOfYear | tinyint | true | |||
| EnglishMonthName | nvarchar(10) | true | |||
| SpanishMonthName | nvarchar(10) | true | |||
| FrenchMonthName | nvarchar(10) | true | |||
| MonthNumberOfYear | tinyint | true | |||
| CalendarQuarter | tinyint | true | |||
| CalendarYear | smallint | true | |||
| CalendarSemester | tinyint | true | |||
| FiscalQuarter | tinyint | true | |||
| FiscalYear | smallint | true | |||
| FiscalSemester | tinyint | true |
| Property | Value |
| Business Name | DateKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | true |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 20040501 |
| Remarks |
| Property | Value |
| Business Name | FullDateAlternateKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | datetime |
| Subtype | date |
| Comments | |
| Not null | true |
| Masked with function | |
| Primary key | |
| Unique | |
| Pattern | |
| Default | |
| Default constraint name | |
| Enum | |
| Faker function | |
| Sample | 2004-05-01T00:00:00.000Z |
| Remarks |
| Property | Value |
| Business Name | DayNumberOfWeek |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | tinyint |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 7 |
| Remarks |
| Property | Value |
| Business Name | EnglishDayNameOfWeek |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 10 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | Saturday |
| Remarks |
| Property | Value |
| Business Name | SpanishDayNameOfWeek |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 10 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | Sábado |
| Remarks |
| Property | Value |
| Business Name | FrenchDayNameOfWeek |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 10 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | Samedi |
| Remarks |
| Property | Value |
| Business Name | DayNumberOfMonth |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | tinyint |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 1 |
| Remarks |
| Property | Value |
| Business Name | DayNumberOfYear |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | smallint |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 122 |
| Remarks |
| Property | Value |
| Business Name | WeekNumberOfYear |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | tinyint |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 18 |
| Remarks |
| Property | Value |
| Business Name | EnglishMonthName |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 10 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | May |
| Remarks |
| Property | Value |
| Business Name | SpanishMonthName |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 10 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | Mayo |
| Remarks |
| Property | Value |
| Business Name | FrenchMonthName |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 10 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | Mai |
| Remarks |
| Property | Value |
| Business Name | MonthNumberOfYear |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | tinyint |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 5 |
| Remarks |
| Property | Value |
| Business Name | CalendarQuarter |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | tinyint |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 2 |
| Remarks |
| Property | Value |
| Business Name | CalendarYear |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | smallint |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 2004 |
| Remarks |
| Property | Value |
| Business Name | CalendarSemester |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | tinyint |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 1 |
| Remarks |
| Property | Value |
| Business Name | FiscalQuarter |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | tinyint |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 4 |
| Remarks |
| Property | Value |
| Business Name | FiscalYear |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | smallint |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 2004 |
| Remarks |
| Property | Value |
| Business Name | FiscalSemester |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | tinyint |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 2 |
| Remarks |
| Property | Value |
| Primary key | |
| [1] Constraint name | |
| Key | |
| Unique key | |
| [1] Constraint name | |
| Key | |
| Alternate key | |
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"title": "DimDate",
"additionalProperties": false,
"properties": {
"DateKey": {
"type": "number"
},
"FullDateAlternateKey": {
"type": "string",
"maxLength": 24
},
"DayNumberOfWeek": {
"type": "number"
},
"EnglishDayNameOfWeek": {
"type": "string"
},
"SpanishDayNameOfWeek": {
"type": "string"
},
"FrenchDayNameOfWeek": {
"type": "string"
},
"DayNumberOfMonth": {
"type": "number"
},
"DayNumberOfYear": {
"type": "number"
},
"WeekNumberOfYear": {
"type": "number"
},
"EnglishMonthName": {
"type": "string"
},
"SpanishMonthName": {
"type": "string"
},
"FrenchMonthName": {
"type": "string"
},
"MonthNumberOfYear": {
"type": "number"
},
"CalendarQuarter": {
"type": "number"
},
"CalendarYear": {
"type": "number"
},
"CalendarSemester": {
"type": "number"
},
"FiscalQuarter": {
"type": "number"
},
"FiscalYear": {
"type": "number"
},
"FiscalSemester": {
"type": "number"
}
},
"required": [
"DateKey",
"FullDateAlternateKey",
"DayNumberOfWeek",
"EnglishDayNameOfWeek",
"SpanishDayNameOfWeek",
"FrenchDayNameOfWeek",
"DayNumberOfMonth",
"DayNumberOfYear",
"WeekNumberOfYear",
"EnglishMonthName",
"SpanishMonthName",
"FrenchMonthName",
"MonthNumberOfYear",
"CalendarQuarter",
"CalendarYear",
"CalendarSemester",
"FiscalQuarter",
"FiscalYear",
"FiscalSemester"
]
}{
"DateKey": 20040501,
"FullDateAlternateKey": "2004-05-01T00:00:00.000Z",
"DayNumberOfWeek": 7,
"EnglishDayNameOfWeek": "Saturday",
"SpanishDayNameOfWeek": "Sábado",
"FrenchDayNameOfWeek": "Samedi",
"DayNumberOfMonth": 1,
"DayNumberOfYear": 122,
"WeekNumberOfYear": 18,
"EnglishMonthName": "May",
"SpanishMonthName": "Mayo",
"FrenchMonthName": "Mai",
"MonthNumberOfYear": 5,
"CalendarQuarter": 2,
"CalendarYear": 2004,
"CalendarSemester": 1,
"FiscalQuarter": 4,
"FiscalYear": 2004,
"FiscalSemester": 2
}IF NOT EXISTS (SELECT * FROM sys.databases WHERE name = N'[hacksqlpool]') begin CREATE DATABASE [hacksqlpool]; USE [hacksqlpool]; end; CREATE SCHEMA [dbo]; CREATE TABLE [dbo].[DimDate] ( [DateKey] INT PRIMARY KEY NONCLUSTERED NOT ENFORCED NOT NULL, [FullDateAlternateKey] DATE NOT NULL, [DayNumberOfWeek] TINYINT NOT NULL, [EnglishDayNameOfWeek] NVARCHAR(10) NOT NULL, [SpanishDayNameOfWeek] NVARCHAR(10) NOT NULL, [FrenchDayNameOfWeek] NVARCHAR(10) NOT NULL, [DayNumberOfMonth] TINYINT NOT NULL, [DayNumberOfYear] SMALLINT NOT NULL, [WeekNumberOfYear] TINYINT NOT NULL, [EnglishMonthName] NVARCHAR(10) NOT NULL, [SpanishMonthName] NVARCHAR(10) NOT NULL, [FrenchMonthName] NVARCHAR(10) NOT NULL, [MonthNumberOfYear] TINYINT NOT NULL, [CalendarQuarter] TINYINT NOT NULL, [CalendarYear] SMALLINT NOT NULL, [CalendarSemester] TINYINT NOT NULL, [FiscalQuarter] TINYINT NOT NULL, [FiscalYear] SMALLINT NOT NULL, [FiscalSemester] TINYINT NOT NULL )WITH ( CLUSTERED COLUMNSTORE INDEX, DISTRIBUTION = ROUND_ROBIN );
| Property | Value |
| Table | DimDepartmentGroup |
| Technical name | |
| Activated | true |
| Id | |
| Schema | dbo |
| Additional properties | false |
| $ref | |
| Comments | |
| If not exist | |
| Distribution | round_robin |
| Persistence | regular |
| SQL pool indexing | clustered columnstore index |
| Partition | |
| CTAS query | |
| Range for values | |
| Boundary value | |
| Remarks |
| Column | Type | Req | Key | Description | Comments |
| DepartmentGroupKey | int | true | pk, dk | ||
| ParentDepartmentGroupKey | int | false | fk | ||
| DepartmentGroupName | nvarchar(50) | false |
| Property | Value |
| Business Name | DepartmentGroupKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | true |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 4 |
| Remarks |
| Property | Value |
| Business Name | ParentDepartmentGroupKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | DimDepartmentGroup |
| Foreign field | DepartmentGroupKey |
| Relationship type | Foreign Key |
| Relationship name | fk DimDepartmentGroup.DepartmentGroupKey to DimDepartmentGroup.ParentDepartmentGroupKey |
| Cardinality | 0..n |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 1 |
| Remarks |
| Property | Value |
| Business Name | DepartmentGroupName |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 50 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | Manufacturing |
| Remarks |
| Property | Value |
| Primary key | |
| [1] Constraint name | |
| Key | |
| Unique key | |
| [1] Constraint name | |
| Key | |
| Alternate key | |
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"title": "DimDepartmentGroup",
"additionalProperties": false,
"properties": {
"DepartmentGroupKey": {
"type": "number"
},
"ParentDepartmentGroupKey": {
"type": "number"
},
"DepartmentGroupName": {
"type": "string"
}
},
"required": [
"DepartmentGroupKey"
]
}{
"DepartmentGroupKey": 4,
"ParentDepartmentGroupKey": 1,
"DepartmentGroupName": "Manufacturing"
}IF NOT EXISTS (SELECT * FROM sys.databases WHERE name = N'[hacksqlpool]') begin CREATE DATABASE [hacksqlpool]; USE [hacksqlpool]; end; CREATE SCHEMA [dbo]; CREATE TABLE [dbo].[DimDepartmentGroup] ( [DepartmentGroupKey] INT PRIMARY KEY NONCLUSTERED NOT ENFORCED NOT NULL, [ParentDepartmentGroupKey] INT, [DepartmentGroupName] NVARCHAR(50) )WITH ( CLUSTERED COLUMNSTORE INDEX, DISTRIBUTION = ROUND_ROBIN );
| Property | Value |
| Table | DimEmployee |
| Technical name | |
| Activated | true |
| Id | |
| Schema | dbo |
| Additional properties | false |
| $ref | |
| Comments | |
| If not exist | |
| Distribution | round_robin |
| Persistence | regular |
| SQL pool indexing | clustered columnstore index |
| Partition | |
| CTAS query | |
| Range for values | |
| Boundary value | |
| Remarks |
| Column | Type | Req | Key | Description | Comments |
| EmployeeKey | int | true | pk, dk | ||
| ParentEmployeeKey | int | false | fk | ||
| EmployeeNationalIDAlternateKey | nvarchar(15) | false | |||
| ParentEmployeeNationalIDAlternateKey | nvarchar(15) | false | |||
| SalesTerritoryKey | int | false | fk | ||
| FirstName | nvarchar(50) | true | |||
| LastName | nvarchar(50) | true | |||
| MiddleName | nvarchar(50) | false | |||
| NameStyle | bit | true | |||
| Title | nvarchar(50) | false | |||
| HireDate | date | false | |||
| BirthDate | date | false | |||
| LoginID | nvarchar(256) | false | |||
| EmailAddress | nvarchar(50) | false | |||
| Phone | nvarchar(25) | false | |||
| MaritalStatus | nchar(1) | false | |||
| EmergencyContactName | nvarchar(50) | false | |||
| EmergencyContactPhone | nvarchar(25) | false | |||
| SalariedFlag | bit | false | |||
| Gender | nchar(1) | false | |||
| PayFrequency | tinyint | false | |||
| BaseRate | money | false | |||
| VacationHours | smallint | false | |||
| SickLeaveHours | smallint | false | |||
| CurrentFlag | bit | true | |||
| SalesPersonFlag | bit | true | |||
| DepartmentName | nvarchar(50) | false | |||
| StartDate | date | false | |||
| EndDate | date | false | |||
| Status | nvarchar(50) | false |
| Property | Value |
| Business Name | EmployeeKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | true |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 274 |
| Remarks |
| Property | Value |
| Business Name | ParentEmployeeKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | DimEmployee |
| Foreign field | EmployeeKey |
| Relationship type | Foreign Key |
| Relationship name | fk DimEmployee.ParentEmployeeKey to DimEmployee.EmployeeKey |
| Cardinality | 1..n |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 3 |
| Remarks |
| Property | Value |
| Business Name | EmployeeNationalIDAlternateKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 15 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | 56920285 |
| Remarks |
| Property | Value |
| Business Name | ParentEmployeeNationalIDAlternateKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 15 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | |
| Remarks |
| Property | Value |
| Business Name | SalesTerritoryKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | DimSalesTerritory |
| Foreign field | SalesTerritoryKey |
| Relationship type | Foreign Key |
| Relationship name | fk DimEmployee.SalesTerritoryKey to DimSalesTerritory.SalesTerritoryKey |
| Cardinality | 1..n |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 11 |
| Remarks |
| Property | Value |
| Business Name | FirstName |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 50 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | Sharon |
| Remarks |
| Property | Value |
| Business Name | LastName |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 50 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | Salavaria |
| Remarks |
| Property | Value |
| Business Name | MiddleName |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 50 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | B |
| Remarks |
| Property | Value |
| Business Name | NameStyle |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | bit |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | false |
| Remarks |
| Property | Value |
| Business Name | Title |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 50 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | Design Engineer |
| Remarks |
| Property | Value |
| Business Name | HireDate |
| Technical name | |
| Activated | true |
| Id | |
| Type | datetime |
| Subtype | date |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Pattern | |
| Default | |
| Default constraint name | |
| Enum | |
| Faker function | |
| Sample | 2001-02-18T00:00:00.000Z |
| Remarks |
| Property | Value |
| Business Name | BirthDate |
| Technical name | |
| Activated | true |
| Id | |
| Type | datetime |
| Subtype | date |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Pattern | |
| Default | |
| Default constraint name | |
| Enum | |
| Faker function | |
| Sample | 1951-06-03T00:00:00.000Z |
| Remarks |
| Property | Value |
| Business Name | LoginID |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 256 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | adventure-works\sharon0 |
| Remarks |
| Property | Value |
| Business Name | EmailAddress |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 50 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | sharon0@adventure-works.com |
| Remarks |
| Property | Value |
| Business Name | Phone |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 25 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | 970-555-0138 |
| Remarks |
| Property | Value |
| Business Name | MaritalStatus |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nchar |
| Length | 1 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | M |
| Remarks |
| Property | Value |
| Business Name | EmergencyContactName |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 50 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | Sharon Salavaria |
| Remarks |
| Property | Value |
| Business Name | EmergencyContactPhone |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 25 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | 970-555-0138 |
| Remarks |
| Property | Value |
| Business Name | SalariedFlag |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | bit |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | true |
| Remarks |
| Property | Value |
| Business Name | Gender |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nchar |
| Length | 1 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | F |
| Remarks |
| Property | Value |
| Business Name | PayFrequency |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | tinyint |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 2 |
| Remarks |
| Property | Value |
| Business Name | BaseRate |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | money |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 32.6923 |
| Remarks |
| Property | Value |
| Business Name | VacationHours |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | smallint |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 4 |
| Remarks |
| Property | Value |
| Business Name | SickLeaveHours |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | smallint |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 22 |
| Remarks |
| Property | Value |
| Business Name | CurrentFlag |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | bit |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | true |
| Remarks |
| Property | Value |
| Business Name | SalesPersonFlag |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | bit |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | false |
| Remarks |
| Property | Value |
| Business Name | DepartmentName |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 50 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | Engineering |
| Remarks |
| Property | Value |
| Business Name | StartDate |
| Technical name | |
| Activated | true |
| Id | |
| Type | datetime |
| Subtype | date |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Pattern | |
| Default | |
| Default constraint name | |
| Enum | |
| Faker function | |
| Sample | 2001-02-18T00:00:00.000Z |
| Remarks |
| Property | Value |
| Business Name | EndDate |
| Technical name | |
| Activated | true |
| Id | |
| Type | datetime |
| Subtype | date |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Pattern | |
| Default | |
| Default constraint name | |
| Enum | |
| Faker function | |
| Sample | 2001-08-30T00:00:00.000Z |
| Remarks |
| Property | Value |
| Business Name | Status |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 50 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | Current |
| Remarks |
| Property | Value |
| Primary key | |
| [1] Constraint name | |
| Key | |
| Unique key | |
| [1] Constraint name | |
| Key | |
| Alternate key | |
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"title": "DimEmployee",
"additionalProperties": false,
"properties": {
"EmployeeKey": {
"type": "number"
},
"ParentEmployeeKey": {
"type": "number"
},
"EmployeeNationalIDAlternateKey": {
"type": "string"
},
"ParentEmployeeNationalIDAlternateKey": {
"type": "string"
},
"SalesTerritoryKey": {
"type": "number"
},
"FirstName": {
"type": "string"
},
"LastName": {
"type": "string"
},
"MiddleName": {
"type": "string"
},
"NameStyle": {
"type": "number"
},
"Title": {
"type": "string"
},
"HireDate": {
"type": "string",
"maxLength": 24
},
"BirthDate": {
"type": "string",
"maxLength": 24
},
"LoginID": {
"type": "string"
},
"EmailAddress": {
"type": "string"
},
"Phone": {
"type": "string"
},
"MaritalStatus": {
"type": "string"
},
"EmergencyContactName": {
"type": "string"
},
"EmergencyContactPhone": {
"type": "string"
},
"SalariedFlag": {
"type": "number"
},
"Gender": {
"type": "string"
},
"PayFrequency": {
"type": "number"
},
"BaseRate": {
"type": "number"
},
"VacationHours": {
"type": "number"
},
"SickLeaveHours": {
"type": "number"
},
"CurrentFlag": {
"type": "number"
},
"SalesPersonFlag": {
"type": "number"
},
"DepartmentName": {
"type": "string"
},
"StartDate": {
"type": "string",
"maxLength": 24
},
"EndDate": {
"type": "string",
"maxLength": 24
},
"Status": {
"type": "string"
}
},
"required": [
"EmployeeKey",
"FirstName",
"LastName",
"NameStyle",
"CurrentFlag",
"SalesPersonFlag"
]
}{
"EmployeeKey": 274,
"ParentEmployeeKey": 3,
"EmployeeNationalIDAlternateKey": "56920285",
"ParentEmployeeNationalIDAlternateKey": "Lorem",
"SalesTerritoryKey": 11,
"FirstName": "Sharon",
"LastName": "Salavaria",
"MiddleName": "B",
"NameStyle": false,
"Title": "Design Engineer",
"HireDate": "2001-02-18T00:00:00.000Z",
"BirthDate": "1951-06-03T00:00:00.000Z",
"LoginID": "adventure-works\\sharon0",
"EmailAddress": "sharon0@adventure-works.com",
"Phone": "970-555-0138",
"MaritalStatus": "M",
"EmergencyContactName": "Sharon Salavaria",
"EmergencyContactPhone": "970-555-0138",
"SalariedFlag": true,
"Gender": "F",
"PayFrequency": 2,
"BaseRate": 32.6923,
"VacationHours": 4,
"SickLeaveHours": 22,
"CurrentFlag": true,
"SalesPersonFlag": false,
"DepartmentName": "Engineering",
"StartDate": "2001-02-18T00:00:00.000Z",
"EndDate": "2001-08-30T00:00:00.000Z",
"Status": "Current"
}IF NOT EXISTS (SELECT * FROM sys.databases WHERE name = N'[hacksqlpool]') begin CREATE DATABASE [hacksqlpool]; USE [hacksqlpool]; end; CREATE SCHEMA [dbo]; CREATE TABLE [dbo].[DimEmployee] ( [EmployeeKey] INT PRIMARY KEY NONCLUSTERED NOT ENFORCED NOT NULL, [ParentEmployeeKey] INT, [EmployeeNationalIDAlternateKey] NVARCHAR(15), [ParentEmployeeNationalIDAlternateKey] NVARCHAR(15), [SalesTerritoryKey] INT, [FirstName] NVARCHAR(50) NOT NULL, [LastName] NVARCHAR(50) NOT NULL, [MiddleName] NVARCHAR(50), [NameStyle] BIT NOT NULL, [Title] NVARCHAR(50), [HireDate] DATE, [BirthDate] DATE, [LoginID] NVARCHAR(256), [EmailAddress] NVARCHAR(50), [Phone] NVARCHAR(25), [MaritalStatus] NCHAR(1), [EmergencyContactName] NVARCHAR(50), [EmergencyContactPhone] NVARCHAR(25), [SalariedFlag] BIT, [Gender] NCHAR(1), [PayFrequency] TINYINT, [BaseRate] MONEY, [VacationHours] SMALLINT, [SickLeaveHours] SMALLINT, [CurrentFlag] BIT NOT NULL, [SalesPersonFlag] BIT NOT NULL, [DepartmentName] NVARCHAR(50), [StartDate] DATE, [EndDate] DATE, [Status] NVARCHAR(50) )WITH ( CLUSTERED COLUMNSTORE INDEX, DISTRIBUTION = ROUND_ROBIN );
| Property | Value |
| Table | DimGeography |
| Technical name | |
| Activated | true |
| Id | |
| Schema | dbo |
| Additional properties | false |
| $ref | |
| Comments | |
| If not exist | |
| Distribution | round_robin |
| Persistence | regular |
| SQL pool indexing | clustered columnstore index |
| Partition | |
| CTAS query | |
| Range for values | |
| Boundary value | |
| Remarks |
| Column | Type | Req | Key | Description | Comments |
| GeographyKey | int | true | pk, dk | ||
| City | nvarchar(30) | false | |||
| StateProvinceCode | nvarchar(3) | false | |||
| StateProvinceName | nvarchar(50) | false | |||
| CountryRegionCode | nvarchar(3) | false | |||
| EnglishCountryRegionName | nvarchar(50) | false | |||
| SpanishCountryRegionName | nvarchar(50) | false | |||
| FrenchCountryRegionName | nvarchar(50) | false | |||
| PostalCode | nvarchar(15) | false | |||
| SalesTerritoryKey | int | false | fk |
| Property | Value |
| Business Name | GeographyKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | true |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 654 |
| Remarks |
| Property | Value |
| Business Name | City |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 30 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | Cheyenne |
| Remarks |
| Property | Value |
| Business Name | StateProvinceCode |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 3 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | WY |
| Remarks |
| Property | Value |
| Business Name | StateProvinceName |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 50 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | Wyoming |
| Remarks |
| Property | Value |
| Business Name | CountryRegionCode |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 3 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | US |
| Remarks |
| Property | Value |
| Business Name | EnglishCountryRegionName |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 50 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | United States |
| Remarks |
| Property | Value |
| Business Name | SpanishCountryRegionName |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 50 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | Estados Unidos |
| Remarks |
| Property | Value |
| Business Name | FrenchCountryRegionName |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 50 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | États-Unis |
| Remarks |
| Property | Value |
| Business Name | PostalCode |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 15 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | 82001 |
| Remarks |
| Property | Value |
| Business Name | SalesTerritoryKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | DimSalesTerritory |
| Foreign field | SalesTerritoryKey |
| Relationship type | Foreign Key |
| Relationship name | fk DimGeography.SalesTerritoryKey to DimSalesTerritory.SalesTerritoryKey |
| Cardinality | 1..n |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 1 |
| Remarks |
| Property | Value |
| Primary key | |
| [1] Constraint name | |
| Key | |
| Unique key | |
| [1] Constraint name | |
| Key | |
| Alternate key | |
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"title": "DimGeography",
"additionalProperties": false,
"properties": {
"GeographyKey": {
"type": "number"
},
"City": {
"type": "string"
},
"StateProvinceCode": {
"type": "string"
},
"StateProvinceName": {
"type": "string"
},
"CountryRegionCode": {
"type": "string"
},
"EnglishCountryRegionName": {
"type": "string"
},
"SpanishCountryRegionName": {
"type": "string"
},
"FrenchCountryRegionName": {
"type": "string"
},
"PostalCode": {
"type": "string"
},
"SalesTerritoryKey": {
"type": "number"
}
},
"required": [
"GeographyKey"
]
}{
"GeographyKey": 654,
"City": "Cheyenne",
"StateProvinceCode": "WY",
"StateProvinceName": "Wyoming",
"CountryRegionCode": "US",
"EnglishCountryRegionName": "United States",
"SpanishCountryRegionName": "Estados Unidos",
"FrenchCountryRegionName": "États-Unis",
"PostalCode": "82001",
"SalesTerritoryKey": 1
}IF NOT EXISTS (SELECT * FROM sys.databases WHERE name = N'[hacksqlpool]') begin CREATE DATABASE [hacksqlpool]; USE [hacksqlpool]; end; CREATE SCHEMA [dbo]; CREATE TABLE [dbo].[DimGeography] ( [GeographyKey] INT PRIMARY KEY NONCLUSTERED NOT ENFORCED NOT NULL, [City] NVARCHAR(30), [StateProvinceCode] NVARCHAR(3), [StateProvinceName] NVARCHAR(50), [CountryRegionCode] NVARCHAR(3), [EnglishCountryRegionName] NVARCHAR(50), [SpanishCountryRegionName] NVARCHAR(50), [FrenchCountryRegionName] NVARCHAR(50), [PostalCode] NVARCHAR(15), [SalesTerritoryKey] INT )WITH ( CLUSTERED COLUMNSTORE INDEX, DISTRIBUTION = ROUND_ROBIN );
| Property | Value |
| Table | DimOrganization |
| Technical name | |
| Activated | true |
| Id | |
| Schema | dbo |
| Additional properties | false |
| $ref | |
| Comments | |
| If not exist | |
| Distribution | round_robin |
| Persistence | regular |
| SQL pool indexing | clustered columnstore index |
| Partition | |
| CTAS query | |
| Range for values | |
| Boundary value | |
| Remarks |
| Column | Type | Req | Key | Description | Comments |
| OrganizationKey | int | true | pk, dk | ||
| ParentOrganizationKey | int | false | fk | ||
| PercentageOfOwnership | nvarchar(16) | false | |||
| OrganizationName | nvarchar(50) | false | |||
| CurrencyKey | int | false | fk |
| Property | Value |
| Business Name | OrganizationKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | true |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 4 |
| Remarks |
| Property | Value |
| Business Name | ParentOrganizationKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | DimOrganization |
| Foreign field | OrganizationKey |
| Relationship type | Foreign Key |
| Relationship name | fk DimOrganization.ParentOrganizationKey to DimOrganization.OrganizationKey |
| Cardinality | 1..n |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 14 |
| Remarks |
| Property | Value |
| Business Name | PercentageOfOwnership |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 16 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | 1 |
| Remarks |
| Property | Value |
| Business Name | OrganizationName |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 50 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | Northwest Division |
| Remarks |
| Property | Value |
| Business Name | CurrencyKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | DimCurrency |
| Foreign field | CurrencyKey |
| Relationship type | Foreign Key |
| Relationship name | fk DimOrganization.CurrencyKey to DimCurrency.CurrencyKey |
| Cardinality | 1..n |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 100 |
| Remarks |
| Property | Value |
| Primary key | |
| [1] Constraint name | |
| Key | |
| Unique key | |
| [1] Constraint name | |
| Key | |
| Alternate key | |
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"title": "DimOrganization",
"additionalProperties": false,
"properties": {
"OrganizationKey": {
"type": "number"
},
"ParentOrganizationKey": {
"type": "number"
},
"PercentageOfOwnership": {
"type": "string"
},
"OrganizationName": {
"type": "string"
},
"CurrencyKey": {
"type": "number"
}
},
"required": [
"OrganizationKey"
]
}{
"OrganizationKey": 4,
"ParentOrganizationKey": 14,
"PercentageOfOwnership": "1",
"OrganizationName": "Northwest Division",
"CurrencyKey": 100
}IF NOT EXISTS (SELECT * FROM sys.databases WHERE name = N'[hacksqlpool]') begin CREATE DATABASE [hacksqlpool]; USE [hacksqlpool]; end; CREATE SCHEMA [dbo]; CREATE TABLE [dbo].[DimOrganization] ( [OrganizationKey] INT PRIMARY KEY NONCLUSTERED NOT ENFORCED NOT NULL, [ParentOrganizationKey] INT, [PercentageOfOwnership] NVARCHAR(16), [OrganizationName] NVARCHAR(50), [CurrencyKey] INT )WITH ( CLUSTERED COLUMNSTORE INDEX, DISTRIBUTION = ROUND_ROBIN );
| Property | Value |
| Table | DimProduct |
| Technical name | |
| Activated | true |
| Id | |
| Schema | dbo |
| Additional properties | false |
| $ref | |
| Comments | |
| If not exist | |
| Distribution | round_robin |
| Persistence | regular |
| SQL pool indexing | clustered columnstore index |
| Partition | |
| CTAS query | |
| Range for values | |
| Boundary value | |
| Remarks |
| Column | Type | Req | Key | Description | Comments |
| ProductKey | int | true | pk | ||
| ProductAlternateKey | nvarchar(25) | false | |||
| ProductSubcategoryKey | int | false | fk | ||
| WeightUnitMeasureCode | nchar(3) | false | |||
| SizeUnitMeasureCode | nchar(3) | false | |||
| EnglishProductName | nvarchar(50) | true | |||
| SpanishProductName | nvarchar(50) | false | |||
| FrenchProductName | nvarchar(50) | false | |||
| StandardCost | money | false | |||
| FinishedGoodsFlag | bit | true | |||
| Color | nvarchar(15) | true | |||
| SafetyStockLevel | smallint | false | |||
| ReorderPoint | smallint | false | |||
| ListPrice | money | false | |||
| Size | nvarchar(50) | false | |||
| SizeRange | nvarchar(50) | false | |||
| Weight | float | false | |||
| DaysToManufacture | int | false | |||
| ProductLine | nchar(2) | false | |||
| DealerPrice | money | false | |||
| Class | nchar(2) | false | |||
| Style | nchar(2) | false | |||
| ModelName | nvarchar(50) | false | |||
| EnglishDescription | nvarchar(400) | false | |||
| FrenchDescription | nvarchar(400) | false | |||
| ChineseDescription | nvarchar(400) | false | |||
| ArabicDescription | nvarchar(400) | false | |||
| HebrewDescription | nvarchar(400) | false | |||
| ThaiDescription | nvarchar(400) | false | |||
| GermanDescription | nvarchar(400) | false | |||
| JapaneseDescription | nvarchar(400) | false | |||
| TurkishDescription | nvarchar(400) | false | |||
| StartDate | datetime | false | |||
| EndDate | datetime | false | |||
| Status | nvarchar(7) | false |
| Property | Value |
| Business Name | ProductKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | true |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 597 |
| Remarks |
| Property | Value |
| Business Name | ProductAlternateKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 25 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | BK-M18B-42 |
| Remarks |
| Property | Value |
| Business Name | ProductSubcategoryKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | DimProductSubcategory |
| Foreign field | ProductSubcategoryKey |
| Relationship type | Foreign Key |
| Relationship name | fk DimProduct.ProductSubcategoryKey to DimProductSubcategory.ProductSubcategoryKey |
| Cardinality | 1..n |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 1 |
| Remarks |
| Property | Value |
| Business Name | WeightUnitMeasureCode |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nchar |
| Length | 3 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | LB |
| Remarks |
| Property | Value |
| Business Name | SizeUnitMeasureCode |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nchar |
| Length | 3 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | CM |
| Remarks |
| Property | Value |
| Business Name | EnglishProductName |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 50 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | Mountain-500 Black, 42 |
| Remarks |
| Property | Value |
| Business Name | SpanishProductName |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 50 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | Montaña: 500, negra, 42 |
| Remarks |
| Property | Value |
| Business Name | FrenchProductName |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 50 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | VTT 500 noir, 42 |
| Remarks |
| Property | Value |
| Business Name | StandardCost |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | money |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 294.5797 |
| Remarks |
| Property | Value |
| Business Name | FinishedGoodsFlag |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | bit |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | true |
| Remarks |
| Property | Value |
| Business Name | Color |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 15 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | Black |
| Remarks |
| Property | Value |
| Business Name | SafetyStockLevel |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | smallint |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 100 |
| Remarks |
| Property | Value |
| Business Name | ReorderPoint |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | smallint |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 75 |
| Remarks |
| Property | Value |
| Business Name | ListPrice |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | money |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 539.99 |
| Remarks |
| Property | Value |
| Business Name | Size |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 50 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | 42 |
| Remarks |
| Property | Value |
| Business Name | SizeRange |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 50 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | 42-46 CM |
| Remarks |
| Property | Value |
| Business Name | Weight |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | float |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 27.77 |
| Remarks |
| Property | Value |
| Business Name | DaysToManufacture |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 4 |
| Remarks |
| Property | Value |
| Business Name | ProductLine |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nchar |
| Length | 2 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | M |
| Remarks |
| Property | Value |
| Business Name | DealerPrice |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | money |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 323.994 |
| Remarks |
| Property | Value |
| Business Name | Class |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nchar |
| Length | 2 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | L |
| Remarks |
| Property | Value |
| Business Name | Style |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nchar |
| Length | 2 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | U |
| Remarks |
| Property | Value |
| Business Name | ModelName |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 50 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | Mountain-500 |
| Remarks |
| Property | Value |
| Business Name | EnglishDescription |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 400 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | Suitable for any type of riding, on or off-road. Fits any budget. Smooth-shifting with a comfortable ride. |
| Remarks |
| Property | Value |
| Business Name | FrenchDescription |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 400 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | Adapté à tous les usages, sur route ou tout-terrain. Pour toutes les bourses. Changement de braquet en douceur et conduite confortable. |
| Remarks |
| Property | Value |
| Business Name | ChineseDescription |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 400 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | 适合所有类型的使用,不论是公路骑乘还是越野。不论预算多少,均可称心如意。变速平稳,骑乘舒适。 |
| Remarks |
| Property | Value |
| Business Name | ArabicDescription |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 400 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | ملائمة لأي نوع من أنواع القيادة، سواءً على الطرق الممهدة أو غير الممهدة. وتناسب أية ميزانية. نقل سرعات سلس مع قيادة مريحة. |
| Remarks |
| Property | Value |
| Business Name | HebrewDescription |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 400 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | מתאימים לכל סוג רכיבה, בדרכים סלולות ובשבילים כאחת. מתאימים לכל תקציב. החלפת הילוכים חלקה יחד עם רכיבה נוחה. |
| Remarks |
| Property | Value |
| Business Name | ThaiDescription |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 400 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | เหมาะสำหรับการขี่ทุกประเภท ทั้งบนถนนและแบบออฟโรด ในราคาย่อมเยา เปลี่ยนเกียร์อย่างนุ่มนวล พร้อมการขับขี่ที่แสนสบาย |
| Remarks |
| Property | Value |
| Business Name | GermanDescription |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 400 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | Geeignet für Straße und Gelände. Für jedes Budget. Komfortable Gangschaltung. |
| Remarks |
| Property | Value |
| Business Name | JapaneseDescription |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 400 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | オンロードにもオフロードにも対応しながら、予算を選ばず、スムーズなシフトで快適な乗り心地です。 |
| Remarks |
| Property | Value |
| Business Name | TurkishDescription |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 400 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | Yolda veya arazide her tür sürüşe uygundur. Her bütçeye uyar. Yumuşak vites geçişi ve konforlu sürüş. |
| Remarks |
| Property | Value |
| Business Name | StartDate |
| Technical name | |
| Activated | true |
| Id | |
| Type | datetime |
| Subtype | datetime |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Pattern | |
| Default | |
| Default constraint name | |
| Enum | |
| Faker function | |
| Sample | 2003-07-01T00:00:00.000Z |
| Remarks |
| Property | Value |
| Business Name | EndDate |
| Technical name | |
| Activated | true |
| Id | |
| Type | datetime |
| Subtype | datetime |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Pattern | |
| Default | |
| Default constraint name | |
| Enum | |
| Faker function | |
| Sample | 2003-06-30T00:00:00.000Z |
| Remarks |
| Property | Value |
| Business Name | Status |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 7 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | Current |
| Remarks |
| Property | Value |
| Primary key | |
| [1] Constraint name | |
| Key | |
| Unique key | |
| [1] Constraint name | |
| Key | |
| Alternate key | |
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"title": "DimProduct",
"additionalProperties": false,
"properties": {
"ProductKey": {
"type": "number"
},
"ProductAlternateKey": {
"type": "string"
},
"ProductSubcategoryKey": {
"type": "number"
},
"WeightUnitMeasureCode": {
"type": "string"
},
"SizeUnitMeasureCode": {
"type": "string"
},
"EnglishProductName": {
"type": "string"
},
"SpanishProductName": {
"type": "string"
},
"FrenchProductName": {
"type": "string"
},
"StandardCost": {
"type": "number"
},
"FinishedGoodsFlag": {
"type": "number"
},
"Color": {
"type": "string"
},
"SafetyStockLevel": {
"type": "number"
},
"ReorderPoint": {
"type": "number"
},
"ListPrice": {
"type": "number"
},
"Size": {
"type": "string"
},
"SizeRange": {
"type": "string"
},
"Weight": {
"type": "number"
},
"DaysToManufacture": {
"type": "number"
},
"ProductLine": {
"type": "string"
},
"DealerPrice": {
"type": "number"
},
"Class": {
"type": "string"
},
"Style": {
"type": "string"
},
"ModelName": {
"type": "string"
},
"EnglishDescription": {
"type": "string"
},
"FrenchDescription": {
"type": "string"
},
"ChineseDescription": {
"type": "string"
},
"ArabicDescription": {
"type": "string"
},
"HebrewDescription": {
"type": "string"
},
"ThaiDescription": {
"type": "string"
},
"GermanDescription": {
"type": "string"
},
"JapaneseDescription": {
"type": "string"
},
"TurkishDescription": {
"type": "string"
},
"StartDate": {
"type": "string",
"maxLength": 24
},
"EndDate": {
"type": "string",
"maxLength": 24
},
"Status": {
"type": "string"
}
},
"required": [
"ProductKey",
"EnglishProductName",
"FinishedGoodsFlag",
"Color"
]
}{
"ProductKey": 597,
"ProductAlternateKey": "BK-M18B-42",
"ProductSubcategoryKey": 1,
"WeightUnitMeasureCode": "LB ",
"SizeUnitMeasureCode": "CM ",
"EnglishProductName": "Mountain-500 Black, 42",
"SpanishProductName": "Montaña: 500, negra, 42",
"FrenchProductName": "VTT 500 noir, 42",
"StandardCost": 294.5797,
"FinishedGoodsFlag": true,
"Color": "Black",
"SafetyStockLevel": 100,
"ReorderPoint": 75,
"ListPrice": 539.99,
"Size": "42",
"SizeRange": "42-46 CM",
"Weight": 27.77,
"DaysToManufacture": 4,
"ProductLine": "M ",
"DealerPrice": 323.994,
"Class": "L ",
"Style": "U ",
"ModelName": "Mountain-500",
"EnglishDescription": "Suitable for any type of riding, on or off-road. Fits any budget. Smooth-shifting with a comfortable ride.",
"FrenchDescription": "Adapté à tous les usages, sur route ou tout-terrain. Pour toutes les bourses. Changement de braquet en douceur et conduite confortable.",
"ChineseDescription": "适合所有类型的使用,不论是公路骑乘还是越野。不论预算多少,均可称心如意。变速平稳,骑乘舒适。",
"ArabicDescription": "ملائمة لأي نوع من أنواع القيادة، سواءً على الطرق الممهدة أو غير الممهدة. وتناسب أية ميزانية. نقل سرعات سلس مع قيادة مريحة.",
"HebrewDescription": "מתאימים לכל סוג רכיבה, בדרכים סלולות ובשבילים כאחת. מתאימים לכל תקציב. החלפת הילוכים חלקה יחד עם רכיבה נוחה.",
"ThaiDescription": "เหมาะสำหรับการขี่ทุกประเภท ทั้งบนถนนและแบบออฟโรด ในราคาย่อมเยา เปลี่ยนเกียร์อย่างนุ่มนวล พร้อมการขับขี่ที่แสนสบาย",
"GermanDescription": "Geeignet für Straße und Gelände. Für jedes Budget. Komfortable Gangschaltung.",
"JapaneseDescription": "オンロードにもオフロードにも対応しながら、予算を選ばず、スムーズなシフトで快適な乗り心地です。",
"TurkishDescription": "Yolda veya arazide her tür sürüşe uygundur. Her bütçeye uyar. Yumuşak vites geçişi ve konforlu sürüş.",
"StartDate": "2003-07-01T00:00:00.000Z",
"EndDate": "2003-06-30T00:00:00.000Z",
"Status": "Current"
}IF NOT EXISTS (SELECT * FROM sys.databases WHERE name = N'[hacksqlpool]') begin CREATE DATABASE [hacksqlpool]; USE [hacksqlpool]; end; CREATE SCHEMA [dbo]; CREATE TABLE [dbo].[DimProduct] ( [ProductKey] INT PRIMARY KEY NONCLUSTERED NOT ENFORCED NOT NULL, [ProductAlternateKey] NVARCHAR(25), [ProductSubcategoryKey] INT, [WeightUnitMeasureCode] NCHAR(3), [SizeUnitMeasureCode] NCHAR(3), [EnglishProductName] NVARCHAR(50) NOT NULL, [SpanishProductName] NVARCHAR(50), [FrenchProductName] NVARCHAR(50), [StandardCost] MONEY, [FinishedGoodsFlag] BIT NOT NULL, [Color] NVARCHAR(15) NOT NULL, [SafetyStockLevel] SMALLINT, [ReorderPoint] SMALLINT, [ListPrice] MONEY, [Size] NVARCHAR(50), [SizeRange] NVARCHAR(50), [Weight] FLOAT, [DaysToManufacture] INT, [ProductLine] NCHAR(2), [DealerPrice] MONEY, [Class] NCHAR(2), [Style] NCHAR(2), [ModelName] NVARCHAR(50), [EnglishDescription] NVARCHAR(400), [FrenchDescription] NVARCHAR(400), [ChineseDescription] NVARCHAR(400), [ArabicDescription] NVARCHAR(400), [HebrewDescription] NVARCHAR(400), [ThaiDescription] NVARCHAR(400), [GermanDescription] NVARCHAR(400), [JapaneseDescription] NVARCHAR(400), [TurkishDescription] NVARCHAR(400), [StartDate] DATETIME, [EndDate] DATETIME, [Status] NVARCHAR(7) )WITH ( CLUSTERED COLUMNSTORE INDEX, DISTRIBUTION = ROUND_ROBIN );
| Property | Value |
| Table | DimProductCategory |
| Technical name | |
| Activated | true |
| Id | |
| Schema | dbo |
| Additional properties | false |
| $ref | |
| Comments | |
| If not exist | |
| Distribution | round_robin |
| Persistence | regular |
| SQL pool indexing | clustered columnstore index |
| Partition | |
| CTAS query | |
| Range for values | |
| Boundary value | |
| Remarks |
| Column | Type | Req | Key | Description | Comments |
| ProductCategoryKey | int | true | pk, dk | ||
| ProductCategoryAlternateKey | int | false | |||
| EnglishProductCategoryName | nvarchar(50) | true | |||
| SpanishProductCategoryName | nvarchar(50) | true | |||
| FrenchProductCategoryName | nvarchar(50) | true |
| Property | Value |
| Business Name | ProductCategoryKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | true |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 4 |
| Remarks |
| Property | Value |
| Business Name | ProductCategoryAlternateKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 4 |
| Remarks |
| Property | Value |
| Business Name | EnglishProductCategoryName |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 50 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | Accessories |
| Remarks |
| Property | Value |
| Business Name | SpanishProductCategoryName |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 50 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | Accesorio |
| Remarks |
| Property | Value |
| Business Name | FrenchProductCategoryName |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 50 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | Accessoire |
| Remarks |
| Property | Value |
| Primary key | |
| [1] Constraint name | |
| Key | |
| Unique key | |
| [1] Constraint name | |
| Key | |
| Alternate key | |
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"title": "DimProductCategory",
"additionalProperties": false,
"properties": {
"ProductCategoryKey": {
"type": "number"
},
"ProductCategoryAlternateKey": {
"type": "number"
},
"EnglishProductCategoryName": {
"type": "string"
},
"SpanishProductCategoryName": {
"type": "string"
},
"FrenchProductCategoryName": {
"type": "string"
}
},
"required": [
"ProductCategoryKey",
"EnglishProductCategoryName",
"SpanishProductCategoryName",
"FrenchProductCategoryName"
]
}{
"ProductCategoryKey": 4,
"ProductCategoryAlternateKey": 4,
"EnglishProductCategoryName": "Accessories",
"SpanishProductCategoryName": "Accesorio",
"FrenchProductCategoryName": "Accessoire"
}IF NOT EXISTS (SELECT * FROM sys.databases WHERE name = N'[hacksqlpool]') begin CREATE DATABASE [hacksqlpool]; USE [hacksqlpool]; end; CREATE SCHEMA [dbo]; CREATE TABLE [dbo].[DimProductCategory] ( [ProductCategoryKey] INT PRIMARY KEY NONCLUSTERED NOT ENFORCED NOT NULL, [ProductCategoryAlternateKey] INT, [EnglishProductCategoryName] NVARCHAR(50) NOT NULL, [SpanishProductCategoryName] NVARCHAR(50) NOT NULL, [FrenchProductCategoryName] NVARCHAR(50) NOT NULL )WITH ( CLUSTERED COLUMNSTORE INDEX, DISTRIBUTION = ROUND_ROBIN );
| Property | Value |
| Table | DimProductSubcategory |
| Technical name | |
| Activated | true |
| Id | |
| Schema | dbo |
| Additional properties | false |
| $ref | |
| Comments | |
| If not exist | |
| Distribution | round_robin |
| Persistence | regular |
| SQL pool indexing | clustered columnstore index |
| Partition | |
| CTAS query | |
| Range for values | |
| Boundary value | |
| Remarks |
| Column | Type | Req | Key | Description | Comments |
| ProductSubcategoryKey | int | true | pk, dk | ||
| ProductSubcategoryAlternateKey | int | false | |||
| EnglishProductSubcategoryName | nvarchar(50) | true | |||
| SpanishProductSubcategoryName | nvarchar(50) | true | |||
| FrenchProductSubcategoryName | nvarchar(50) | true | |||
| ProductCategoryKey | int | false | fk |
| Property | Value |
| Business Name | ProductSubcategoryKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | true |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 33 |
| Remarks |
| Property | Value |
| Business Name | ProductSubcategoryAlternateKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 33 |
| Remarks |
| Property | Value |
| Business Name | EnglishProductSubcategoryName |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 50 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | Lights |
| Remarks |
| Property | Value |
| Business Name | SpanishProductSubcategoryName |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 50 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | Luz |
| Remarks |
| Property | Value |
| Business Name | FrenchProductSubcategoryName |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 50 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | Éclairage |
| Remarks |
| Property | Value |
| Business Name | ProductCategoryKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | DimProductCategory |
| Foreign field | ProductCategoryKey |
| Relationship type | Foreign Key |
| Relationship name | fk DimProductSubcategory.ProductCategoryKey to DimProductCategory.ProductCategoryKey |
| Cardinality | 1..n |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 4 |
| Remarks |
| Property | Value |
| Primary key | |
| [1] Constraint name | |
| Key | |
| Unique key | |
| [1] Constraint name | |
| Key | |
| Alternate key | |
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"title": "DimProductSubcategory",
"additionalProperties": false,
"properties": {
"ProductSubcategoryKey": {
"type": "number"
},
"ProductSubcategoryAlternateKey": {
"type": "number"
},
"EnglishProductSubcategoryName": {
"type": "string"
},
"SpanishProductSubcategoryName": {
"type": "string"
},
"FrenchProductSubcategoryName": {
"type": "string"
},
"ProductCategoryKey": {
"type": "number"
}
},
"required": [
"ProductSubcategoryKey",
"EnglishProductSubcategoryName",
"SpanishProductSubcategoryName",
"FrenchProductSubcategoryName"
]
}{
"ProductSubcategoryKey": 33,
"ProductSubcategoryAlternateKey": 33,
"EnglishProductSubcategoryName": "Lights",
"SpanishProductSubcategoryName": "Luz",
"FrenchProductSubcategoryName": "Éclairage",
"ProductCategoryKey": 4
}IF NOT EXISTS (SELECT * FROM sys.databases WHERE name = N'[hacksqlpool]') begin CREATE DATABASE [hacksqlpool]; USE [hacksqlpool]; end; CREATE SCHEMA [dbo]; CREATE TABLE [dbo].[DimProductSubcategory] ( [ProductSubcategoryKey] INT PRIMARY KEY NONCLUSTERED NOT ENFORCED NOT NULL, [ProductSubcategoryAlternateKey] INT, [EnglishProductSubcategoryName] NVARCHAR(50) NOT NULL, [SpanishProductSubcategoryName] NVARCHAR(50) NOT NULL, [FrenchProductSubcategoryName] NVARCHAR(50) NOT NULL, [ProductCategoryKey] INT )WITH ( CLUSTERED COLUMNSTORE INDEX, DISTRIBUTION = ROUND_ROBIN );
| Property | Value |
| Table | DimPromotion |
| Technical name | |
| Activated | true |
| Id | |
| Schema | dbo |
| Additional properties | false |
| $ref | |
| Comments | |
| If not exist | |
| Distribution | round_robin |
| Persistence | regular |
| SQL pool indexing | clustered columnstore index |
| Partition | |
| CTAS query | |
| Range for values | |
| Boundary value | |
| Remarks |
| Column | Type | Req | Key | Description | Comments |
| PromotionKey | int | true | pk, dk | ||
| PromotionAlternateKey | int | false | |||
| EnglishPromotionName | nvarchar(255) | false | |||
| SpanishPromotionName | nvarchar(255) | false | |||
| FrenchPromotionName | nvarchar(255) | false | |||
| DiscountPct | float | false | |||
| EnglishPromotionType | nvarchar(50) | false | |||
| SpanishPromotionType | nvarchar(50) | false | |||
| FrenchPromotionType | nvarchar(50) | false | |||
| EnglishPromotionCategory | nvarchar(50) | false | |||
| SpanishPromotionCategory | nvarchar(50) | false | |||
| FrenchPromotionCategory | nvarchar(50) | false | |||
| StartDate | datetime | true | |||
| EndDate | datetime | false | |||
| MinQty | int | false | |||
| MaxQty | int | false |
| Property | Value |
| Business Name | PromotionKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | true |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 16 |
| Remarks |
| Property | Value |
| Business Name | PromotionAlternateKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 16 |
| Remarks |
| Property | Value |
| Business Name | EnglishPromotionName |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 255 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | Mountain-500 Silver Clearance Sale |
| Remarks |
| Property | Value |
| Business Name | SpanishPromotionName |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 255 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | Liquidación de bicicleta de montaña, 500, plateada |
| Remarks |
| Property | Value |
| Business Name | FrenchPromotionName |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 255 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | Liquidation VTT 500 argent |
| Remarks |
| Property | Value |
| Business Name | DiscountPct |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | float |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 0.4 |
| Remarks |
| Property | Value |
| Business Name | EnglishPromotionType |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 50 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | Discontinued Product |
| Remarks |
| Property | Value |
| Business Name | SpanishPromotionType |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 50 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | Descatalogado |
| Remarks |
| Property | Value |
| Business Name | FrenchPromotionType |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 50 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | Ce produit n'est plus commercialisé |
| Remarks |
| Property | Value |
| Business Name | EnglishPromotionCategory |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 50 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | Reseller |
| Remarks |
| Property | Value |
| Business Name | SpanishPromotionCategory |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 50 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | Distribuidor |
| Remarks |
| Property | Value |
| Business Name | FrenchPromotionCategory |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 50 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | Revendeur |
| Remarks |
| Property | Value |
| Business Name | StartDate |
| Technical name | |
| Activated | true |
| Id | |
| Type | datetime |
| Subtype | datetime |
| Comments | |
| Not null | true |
| Masked with function | |
| Primary key | |
| Unique | |
| Pattern | |
| Default | |
| Default constraint name | |
| Enum | |
| Faker function | |
| Sample | 2004-05-01T00:00:00.000Z |
| Remarks |
| Property | Value |
| Business Name | EndDate |
| Technical name | |
| Activated | true |
| Id | |
| Type | datetime |
| Subtype | datetime |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Pattern | |
| Default | |
| Default constraint name | |
| Enum | |
| Faker function | |
| Sample | 2004-06-30T00:00:00.000Z |
| Remarks |
| Property | Value |
| Business Name | MinQty |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 0 |
| Remarks |
| Property | Value |
| Business Name | MaxQty |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 40 |
| Remarks |
| Property | Value |
| Primary key | |
| [1] Constraint name | |
| Key | |
| Unique key | |
| [1] Constraint name | |
| Key | |
| Alternate key | |
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"title": "DimPromotion",
"additionalProperties": false,
"properties": {
"PromotionKey": {
"type": "number"
},
"PromotionAlternateKey": {
"type": "number"
},
"EnglishPromotionName": {
"type": "string"
},
"SpanishPromotionName": {
"type": "string"
},
"FrenchPromotionName": {
"type": "string"
},
"DiscountPct": {
"type": "number"
},
"EnglishPromotionType": {
"type": "string"
},
"SpanishPromotionType": {
"type": "string"
},
"FrenchPromotionType": {
"type": "string"
},
"EnglishPromotionCategory": {
"type": "string"
},
"SpanishPromotionCategory": {
"type": "string"
},
"FrenchPromotionCategory": {
"type": "string"
},
"StartDate": {
"type": "string",
"maxLength": 24
},
"EndDate": {
"type": "string",
"maxLength": 24
},
"MinQty": {
"type": "number"
},
"MaxQty": {
"type": "number"
}
},
"required": [
"PromotionKey",
"StartDate"
]
}{
"PromotionKey": 16,
"PromotionAlternateKey": 16,
"EnglishPromotionName": "Mountain-500 Silver Clearance Sale",
"SpanishPromotionName": "Liquidación de bicicleta de montaña, 500, plateada",
"FrenchPromotionName": "Liquidation VTT 500 argent",
"DiscountPct": 0.4,
"EnglishPromotionType": "Discontinued Product",
"SpanishPromotionType": "Descatalogado",
"FrenchPromotionType": "Ce produit n'est plus commercialisé",
"EnglishPromotionCategory": "Reseller",
"SpanishPromotionCategory": "Distribuidor",
"FrenchPromotionCategory": "Revendeur",
"StartDate": "2004-05-01T00:00:00.000Z",
"EndDate": "2004-06-30T00:00:00.000Z",
"MinQty": 0,
"MaxQty": 40
}IF NOT EXISTS (SELECT * FROM sys.databases WHERE name = N'[hacksqlpool]') begin CREATE DATABASE [hacksqlpool]; USE [hacksqlpool]; end; CREATE SCHEMA [dbo]; CREATE TABLE [dbo].[DimPromotion] ( [PromotionKey] INT PRIMARY KEY NONCLUSTERED NOT ENFORCED NOT NULL, [PromotionAlternateKey] INT, [EnglishPromotionName] NVARCHAR(255), [SpanishPromotionName] NVARCHAR(255), [FrenchPromotionName] NVARCHAR(255), [DiscountPct] FLOAT, [EnglishPromotionType] NVARCHAR(50), [SpanishPromotionType] NVARCHAR(50), [FrenchPromotionType] NVARCHAR(50), [EnglishPromotionCategory] NVARCHAR(50), [SpanishPromotionCategory] NVARCHAR(50), [FrenchPromotionCategory] NVARCHAR(50), [StartDate] DATETIME NOT NULL, [EndDate] DATETIME, [MinQty] INT, [MaxQty] INT )WITH ( CLUSTERED COLUMNSTORE INDEX, DISTRIBUTION = ROUND_ROBIN );
| Property | Value |
| Table | DimReseller |
| Technical name | |
| Activated | true |
| Id | |
| Schema | dbo |
| Additional properties | false |
| $ref | |
| Comments | |
| If not exist | |
| Distribution | round_robin |
| Persistence | regular |
| SQL pool indexing | clustered columnstore index |
| Partition | |
| CTAS query | |
| Range for values | |
| Boundary value | |
| Remarks |
| Column | Type | Req | Key | Description | Comments |
| ResellerKey | int | true | pk, dk | ||
| GeographyKey | int | false | fk | ||
| ResellerAlternateKey | nvarchar(15) | false | |||
| Phone | nvarchar(25) | false | |||
| BusinessType | varchar(20) | true | |||
| ResellerName | nvarchar(50) | true | |||
| NumberEmployees | int | false | |||
| OrderFrequency | char(1) | false | |||
| OrderMonth | tinyint | false | |||
| FirstOrderYear | int | false | |||
| LastOrderYear | int | false | |||
| ProductLine | nvarchar(50) | false | |||
| AddressLine1 | nvarchar(60) | false | |||
| AddressLine2 | nvarchar(60) | false | |||
| AnnualSales | money | false | |||
| BankName | nvarchar(50) | false | |||
| MinPaymentType | tinyint | false | |||
| MinPaymentAmount | money | false | |||
| AnnualRevenue | money | false | |||
| YearOpened | int | false |
| Property | Value |
| Business Name | ResellerKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | true |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 687 |
| Remarks |
| Property | Value |
| Business Name | GeographyKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | DimGeography |
| Foreign field | GeographyKey |
| Relationship type | Foreign Key |
| Relationship name | fk DimReseller.GeographyKey to DimGeography.GeographyKey |
| Cardinality | 1..n |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 159 |
| Remarks |
| Property | Value |
| Business Name | ResellerAlternateKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 15 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | AW00000687 |
| Remarks |
| Property | Value |
| Business Name | Phone |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 25 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | 1 (11) 500 555-0178 |
| Remarks |
| Property | Value |
| Business Name | BusinessType |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | varchar |
| Length | 20 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | Warehouse |
| Remarks |
| Property | Value |
| Business Name | ResellerName |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 50 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | Functional Store South |
| Remarks |
| Property | Value |
| Business Name | NumberEmployees |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 70 |
| Remarks |
| Property | Value |
| Business Name | OrderFrequency |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | char |
| Length | 1 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | Q |
| Remarks |
| Property | Value |
| Business Name | OrderMonth |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | tinyint |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 5 |
| Remarks |
| Property | Value |
| Business Name | FirstOrderYear |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 2003 |
| Remarks |
| Property | Value |
| Business Name | LastOrderYear |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 2004 |
| Remarks |
| Property | Value |
| Business Name | ProductLine |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 50 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | Mountain |
| Remarks |
| Property | Value |
| Business Name | AddressLine1 |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 60 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | Viktoria-Luise-Platz 475 |
| Remarks |
| Property | Value |
| Business Name | AddressLine2 |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 60 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | 56 Pitt Street |
| Remarks |
| Property | Value |
| Business Name | AnnualSales |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | money |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 3000000 |
| Remarks |
| Property | Value |
| Business Name | BankName |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 50 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | International Bank |
| Remarks |
| Property | Value |
| Business Name | MinPaymentType |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | tinyint |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 1 |
| Remarks |
| Property | Value |
| Business Name | MinPaymentAmount |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | money |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 600 |
| Remarks |
| Property | Value |
| Business Name | AnnualRevenue |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | money |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 300000 |
| Remarks |
| Property | Value |
| Business Name | YearOpened |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 1993 |
| Remarks |
| Property | Value |
| Primary key | |
| [1] Constraint name | |
| Key | |
| Unique key | |
| [1] Constraint name | |
| Key | |
| Alternate key | |
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"title": "DimReseller",
"additionalProperties": false,
"properties": {
"ResellerKey": {
"type": "number"
},
"GeographyKey": {
"type": "number"
},
"ResellerAlternateKey": {
"type": "string"
},
"Phone": {
"type": "string"
},
"BusinessType": {
"type": "string"
},
"ResellerName": {
"type": "string"
},
"NumberEmployees": {
"type": "number"
},
"OrderFrequency": {
"type": "string"
},
"OrderMonth": {
"type": "number"
},
"FirstOrderYear": {
"type": "number"
},
"LastOrderYear": {
"type": "number"
},
"ProductLine": {
"type": "string"
},
"AddressLine1": {
"type": "string"
},
"AddressLine2": {
"type": "string"
},
"AnnualSales": {
"type": "number"
},
"BankName": {
"type": "string"
},
"MinPaymentType": {
"type": "number"
},
"MinPaymentAmount": {
"type": "number"
},
"AnnualRevenue": {
"type": "number"
},
"YearOpened": {
"type": "number"
}
},
"required": [
"ResellerKey",
"BusinessType",
"ResellerName"
]
}{
"ResellerKey": 687,
"GeographyKey": 159,
"ResellerAlternateKey": "AW00000687",
"Phone": "1 (11) 500 555-0178",
"BusinessType": "Warehouse",
"ResellerName": "Functional Store South",
"NumberEmployees": 70,
"OrderFrequency": "Q",
"OrderMonth": 5,
"FirstOrderYear": 2003,
"LastOrderYear": 2004,
"ProductLine": "Mountain",
"AddressLine1": "Viktoria-Luise-Platz 475",
"AddressLine2": "56 Pitt Street",
"AnnualSales": 3000000,
"BankName": "International Bank",
"MinPaymentType": 1,
"MinPaymentAmount": 600,
"AnnualRevenue": 300000,
"YearOpened": 1993
}IF NOT EXISTS (SELECT * FROM sys.databases WHERE name = N'[hacksqlpool]') begin CREATE DATABASE [hacksqlpool]; USE [hacksqlpool]; end; CREATE SCHEMA [dbo]; CREATE TABLE [dbo].[DimReseller] ( [ResellerKey] INT PRIMARY KEY NONCLUSTERED NOT ENFORCED NOT NULL, [GeographyKey] INT, [ResellerAlternateKey] NVARCHAR(15), [Phone] NVARCHAR(25), [BusinessType] VARCHAR(20) NOT NULL, [ResellerName] NVARCHAR(50) NOT NULL, [NumberEmployees] INT, [OrderFrequency] CHAR(1), [OrderMonth] TINYINT, [FirstOrderYear] INT, [LastOrderYear] INT, [ProductLine] NVARCHAR(50), [AddressLine1] NVARCHAR(60), [AddressLine2] NVARCHAR(60), [AnnualSales] MONEY, [BankName] NVARCHAR(50), [MinPaymentType] TINYINT, [MinPaymentAmount] MONEY, [AnnualRevenue] MONEY, [YearOpened] INT )WITH ( CLUSTERED COLUMNSTORE INDEX, DISTRIBUTION = ROUND_ROBIN );
| Property | Value |
| Table | DimSalesReason |
| Technical name | |
| Activated | true |
| Id | |
| Schema | dbo |
| Additional properties | false |
| $ref | |
| Comments | |
| If not exist | |
| Distribution | round_robin |
| Persistence | regular |
| SQL pool indexing | clustered columnstore index |
| Partition | |
| CTAS query | |
| Range for values | |
| Boundary value | |
| Remarks |
| Column | Type | Req | Key | Description | Comments |
| SalesReasonKey | int | true | pk, dk | ||
| SalesReasonAlternateKey | int | true | |||
| SalesReasonName | nvarchar(50) | true | |||
| SalesReasonReasonType | nvarchar(50) | true |
| Property | Value |
| Business Name | SalesReasonKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | true |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 4 |
| Remarks |
| Property | Value |
| Business Name | SalesReasonAlternateKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 4 |
| Remarks |
| Property | Value |
| Business Name | SalesReasonName |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 50 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | Television Advertisement |
| Remarks |
| Property | Value |
| Business Name | SalesReasonReasonType |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 50 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | Marketing |
| Remarks |
| Property | Value |
| Primary key | |
| [1] Constraint name | |
| Key | |
| Unique key | |
| [1] Constraint name | |
| Key | |
| Alternate key | |
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"title": "DimSalesReason",
"additionalProperties": false,
"properties": {
"SalesReasonKey": {
"type": "number"
},
"SalesReasonAlternateKey": {
"type": "number"
},
"SalesReasonName": {
"type": "string"
},
"SalesReasonReasonType": {
"type": "string"
}
},
"required": [
"SalesReasonKey",
"SalesReasonAlternateKey",
"SalesReasonName",
"SalesReasonReasonType"
]
}{
"SalesReasonKey": 4,
"SalesReasonAlternateKey": 4,
"SalesReasonName": "Television Advertisement",
"SalesReasonReasonType": "Marketing"
}IF NOT EXISTS (SELECT * FROM sys.databases WHERE name = N'[hacksqlpool]') begin CREATE DATABASE [hacksqlpool]; USE [hacksqlpool]; end; CREATE SCHEMA [dbo]; CREATE TABLE [dbo].[DimSalesReason] ( [SalesReasonKey] INT PRIMARY KEY NONCLUSTERED NOT ENFORCED NOT NULL, [SalesReasonAlternateKey] INT NOT NULL, [SalesReasonName] NVARCHAR(50) NOT NULL, [SalesReasonReasonType] NVARCHAR(50) NOT NULL )WITH ( CLUSTERED COLUMNSTORE INDEX, DISTRIBUTION = ROUND_ROBIN );
| Property | Value |
| Table | DimSalesTerritory |
| Technical name | |
| Activated | true |
| Id | |
| Schema | dbo |
| Additional properties | false |
| $ref | |
| Comments | |
| If not exist | |
| Distribution | round_robin |
| Persistence | regular |
| SQL pool indexing | clustered columnstore index |
| Partition | |
| CTAS query | |
| Range for values | |
| Boundary value | |
| Remarks |
| Column | Type | Req | Key | Description | Comments |
| SalesTerritoryKey | int | true | pk, dk | ||
| SalesTerritoryAlternateKey | int | false | |||
| SalesTerritoryRegion | nvarchar(50) | true | |||
| SalesTerritoryCountry | nvarchar(50) | true | |||
| SalesTerritoryGroup | nvarchar(50) | false |
| Property | Value |
| Business Name | SalesTerritoryKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | true |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 4 |
| Remarks |
| Property | Value |
| Business Name | SalesTerritoryAlternateKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 4 |
| Remarks |
| Property | Value |
| Business Name | SalesTerritoryRegion |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 50 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | Southwest |
| Remarks |
| Property | Value |
| Business Name | SalesTerritoryCountry |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 50 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | United States |
| Remarks |
| Property | Value |
| Business Name | SalesTerritoryGroup |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 50 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | North America |
| Remarks |
| Property | Value |
| Primary key | |
| [1] Constraint name | |
| Key | |
| Unique key | |
| [1] Constraint name | |
| Key | |
| Alternate key | |
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"title": "DimSalesTerritory",
"additionalProperties": false,
"properties": {
"SalesTerritoryKey": {
"type": "number"
},
"SalesTerritoryAlternateKey": {
"type": "number"
},
"SalesTerritoryRegion": {
"type": "string"
},
"SalesTerritoryCountry": {
"type": "string"
},
"SalesTerritoryGroup": {
"type": "string"
}
},
"required": [
"SalesTerritoryKey",
"SalesTerritoryRegion",
"SalesTerritoryCountry"
]
}{
"SalesTerritoryKey": 4,
"SalesTerritoryAlternateKey": 4,
"SalesTerritoryRegion": "Southwest",
"SalesTerritoryCountry": "United States",
"SalesTerritoryGroup": "North America"
}IF NOT EXISTS (SELECT * FROM sys.databases WHERE name = N'[hacksqlpool]') begin CREATE DATABASE [hacksqlpool]; USE [hacksqlpool]; end; CREATE SCHEMA [dbo]; CREATE TABLE [dbo].[DimSalesTerritory] ( [SalesTerritoryKey] INT PRIMARY KEY NONCLUSTERED NOT ENFORCED NOT NULL, [SalesTerritoryAlternateKey] INT, [SalesTerritoryRegion] NVARCHAR(50) NOT NULL, [SalesTerritoryCountry] NVARCHAR(50) NOT NULL, [SalesTerritoryGroup] NVARCHAR(50) )WITH ( CLUSTERED COLUMNSTORE INDEX, DISTRIBUTION = ROUND_ROBIN );
| Property | Value |
| Table | DimScenario |
| Technical name | |
| Activated | true |
| Id | |
| Schema | dbo |
| Additional properties | false |
| $ref | |
| Comments | |
| If not exist | |
| Distribution | round_robin |
| Persistence | regular |
| SQL pool indexing | clustered columnstore index |
| Partition | |
| CTAS query | |
| Range for values | |
| Boundary value | |
| Remarks |
| Column | Type | Req | Key | Description | Comments |
| ScenarioKey | int | true | pk, dk | ||
| ScenarioName | nvarchar(50) | false |
| Property | Value |
| Business Name | ScenarioKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | true |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 3 |
| Remarks |
| Property | Value |
| Business Name | ScenarioName |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 50 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | Forecast |
| Remarks |
| Property | Value |
| Primary key | |
| [1] Constraint name | |
| Key | |
| Unique key | |
| [1] Constraint name | |
| Key | |
| Alternate key | |
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"title": "DimScenario",
"additionalProperties": false,
"properties": {
"ScenarioKey": {
"type": "number"
},
"ScenarioName": {
"type": "string"
}
},
"required": [
"ScenarioKey"
]
}{
"ScenarioKey": 3,
"ScenarioName": "Forecast"
}IF NOT EXISTS (SELECT * FROM sys.databases WHERE name = N'[hacksqlpool]') begin CREATE DATABASE [hacksqlpool]; USE [hacksqlpool]; end; CREATE SCHEMA [dbo]; CREATE TABLE [dbo].[DimScenario] ( [ScenarioKey] INT PRIMARY KEY NONCLUSTERED NOT ENFORCED NOT NULL, [ScenarioName] NVARCHAR(50) )WITH ( CLUSTERED COLUMNSTORE INDEX, DISTRIBUTION = ROUND_ROBIN );
| Property | Value |
| Table | FactCallCenter |
| Technical name | |
| Activated | true |
| Id | |
| Schema | dbo |
| Additional properties | false |
| $ref | |
| Comments | |
| If not exist | |
| Distribution | round_robin |
| Persistence | regular |
| SQL pool indexing | clustered columnstore index |
| Partition | |
| CTAS query | |
| Range for values | |
| Boundary value | |
| Remarks |
| Column | Type | Req | Key | Description | Comments |
| FactCallCenterID | int | true | pk | ||
| DateKey | int | true | fk | ||
| WageType | nvarchar(15) | true | |||
| Shift | nvarchar(20) | true | |||
| LevelOneOperators | smallint | true | |||
| LevelTwoOperators | smallint | true | |||
| TotalOperators | smallint | true | |||
| Calls | int | true | |||
| AutomaticResponses | int | true | |||
| Orders | int | true | |||
| IssuesRaised | smallint | true | |||
| AverageTimePerIssue | smallint | true | |||
| ServiceGrade | float | true |
| Property | Value |
| Business Name | FactCallCenterID |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | true |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 101 |
| Remarks |
| Property | Value |
| Business Name | DateKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | DimDate |
| Foreign field | DateKey |
| Relationship type | Foreign Key |
| Relationship name | fk DimDate.DateKey to FactCallCenter.DateKey |
| Cardinality | 0..n |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 20061126 |
| Remarks |
| Property | Value |
| Business Name | WageType |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 15 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | holiday |
| Remarks |
| Property | Value |
| Business Name | Shift |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 20 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | AM |
| Remarks |
| Property | Value |
| Business Name | LevelOneOperators |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | smallint |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 2 |
| Remarks |
| Property | Value |
| Business Name | LevelTwoOperators |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | smallint |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 8 |
| Remarks |
| Property | Value |
| Business Name | TotalOperators |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | smallint |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 10 |
| Remarks |
| Property | Value |
| Business Name | Calls |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 278 |
| Remarks |
| Property | Value |
| Business Name | AutomaticResponses |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 180 |
| Remarks |
| Property | Value |
| Business Name | Orders |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 194 |
| Remarks |
| Property | Value |
| Business Name | IssuesRaised |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | smallint |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 2 |
| Remarks |
| Property | Value |
| Business Name | AverageTimePerIssue |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | smallint |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 62 |
| Remarks |
| Property | Value |
| Business Name | ServiceGrade |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | float |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 0.07 |
| Remarks |
| Property | Value |
| Primary key | |
| [1] Constraint name | |
| Key | |
| Unique key | |
| [1] Constraint name | |
| Key | |
| Alternate key | |
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"title": "FactCallCenter",
"additionalProperties": false,
"properties": {
"FactCallCenterID": {
"type": "number"
},
"DateKey": {
"type": "number"
},
"WageType": {
"type": "string"
},
"Shift": {
"type": "string"
},
"LevelOneOperators": {
"type": "number"
},
"LevelTwoOperators": {
"type": "number"
},
"TotalOperators": {
"type": "number"
},
"Calls": {
"type": "number"
},
"AutomaticResponses": {
"type": "number"
},
"Orders": {
"type": "number"
},
"IssuesRaised": {
"type": "number"
},
"AverageTimePerIssue": {
"type": "number"
},
"ServiceGrade": {
"type": "number"
}
},
"required": [
"FactCallCenterID",
"DateKey",
"WageType",
"Shift",
"LevelOneOperators",
"LevelTwoOperators",
"TotalOperators",
"Calls",
"AutomaticResponses",
"Orders",
"IssuesRaised",
"AverageTimePerIssue",
"ServiceGrade"
]
}{
"FactCallCenterID": 101,
"DateKey": 20061126,
"WageType": "holiday",
"Shift": "AM",
"LevelOneOperators": 2,
"LevelTwoOperators": 8,
"TotalOperators": 10,
"Calls": 278,
"AutomaticResponses": 180,
"Orders": 194,
"IssuesRaised": 2,
"AverageTimePerIssue": 62,
"ServiceGrade": 0.07
}IF NOT EXISTS (SELECT * FROM sys.databases WHERE name = N'[hacksqlpool]') begin CREATE DATABASE [hacksqlpool]; USE [hacksqlpool]; end; CREATE SCHEMA [dbo]; CREATE TABLE [dbo].[FactCallCenter] ( [FactCallCenterID] INT PRIMARY KEY NONCLUSTERED NOT ENFORCED NOT NULL, [DateKey] INT NOT NULL, [WageType] NVARCHAR(15) NOT NULL, [Shift] NVARCHAR(20) NOT NULL, [LevelOneOperators] SMALLINT NOT NULL, [LevelTwoOperators] SMALLINT NOT NULL, [TotalOperators] SMALLINT NOT NULL, [Calls] INT NOT NULL, [AutomaticResponses] INT NOT NULL, [Orders] INT NOT NULL, [IssuesRaised] SMALLINT NOT NULL, [AverageTimePerIssue] SMALLINT NOT NULL, [ServiceGrade] FLOAT NOT NULL )WITH ( CLUSTERED COLUMNSTORE INDEX, DISTRIBUTION = ROUND_ROBIN );
| Property | Value |
| Table | FactCurrencyRate |
| Technical name | |
| Activated | true |
| Id | |
| Schema | dbo |
| Additional properties | false |
| $ref | |
| Comments | |
| If not exist | |
| Distribution | round_robin |
| Persistence | regular |
| SQL pool indexing | clustered columnstore index |
| Partition | |
| CTAS query | |
| Range for values | |
| Boundary value | |
| Remarks |
| Column | Type | Req | Key | Description | Comments |
| CurrencyKey | int | true | pk, fk | ||
| DateKey | int | true | fk | ||
| AverageRate | float | true | |||
| EndOfDayRate | float | true |
| Property | Value |
| Business Name | CurrencyKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | true |
| Foreign table | DimCurrency |
| Foreign field | CurrencyKey |
| Relationship type | Foreign Key |
| Relationship name | fk DimCurrency.CurrencyKey to FactCurrencyRate.CurrencyKey |
| Cardinality | 0..n |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 103 |
| Remarks |
| Property | Value |
| Business Name | DateKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | DimDate |
| Foreign field | DateKey |
| Relationship type | Foreign Key |
| Relationship name | fk DimDate.DateKey to FactCurrencyRate.DateKey |
| Cardinality | 0..n |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 20010922 |
| Remarks |
| Property | Value |
| Business Name | AverageRate |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | float |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 0.120778781583651 |
| Remarks |
| Property | Value |
| Business Name | EndOfDayRate |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | float |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 0.120786075781184 |
| Remarks |
| Property | Value |
| Primary key | |
| [1] Constraint name | |
| Key | |
| Unique key | |
| [1] Constraint name | |
| Key | |
| Alternate key | |
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"title": "FactCurrencyRate",
"additionalProperties": false,
"properties": {
"CurrencyKey": {
"type": "number"
},
"DateKey": {
"type": "number"
},
"AverageRate": {
"type": "number"
},
"EndOfDayRate": {
"type": "number"
}
},
"required": [
"CurrencyKey",
"DateKey",
"AverageRate",
"EndOfDayRate"
]
}{
"CurrencyKey": 103,
"DateKey": 20010922,
"AverageRate": 0.120778781583651,
"EndOfDayRate": 0.120786075781184
}IF NOT EXISTS (SELECT * FROM sys.databases WHERE name = N'[hacksqlpool]') begin CREATE DATABASE [hacksqlpool]; USE [hacksqlpool]; end; CREATE SCHEMA [dbo]; CREATE TABLE [dbo].[FactCurrencyRate] ( [CurrencyKey] INT PRIMARY KEY NONCLUSTERED NOT ENFORCED NOT NULL, [DateKey] INT NOT NULL, [AverageRate] FLOAT NOT NULL, [EndOfDayRate] FLOAT NOT NULL )WITH ( CLUSTERED COLUMNSTORE INDEX, DISTRIBUTION = ROUND_ROBIN );
| Property | Value |
| Table | FactFinance |
| Technical name | |
| Activated | true |
| Id | |
| Schema | dbo |
| Additional properties | false |
| $ref | |
| Comments | |
| If not exist | |
| Distribution | round_robin |
| Persistence | regular |
| SQL pool indexing | clustered columnstore index |
| Partition | |
| CTAS query | |
| Range for values | |
| Boundary value | |
| Remarks |
| Column | Type | Req | Key | Description | Comments |
| FinanceKey | int | true | pk | ||
| DateKey | int | true | fk | ||
| OrganizationKey | int | true | fk | ||
| DepartmentGroupKey | int | true | fk | ||
| ScenarioKey | int | true | fk | ||
| AccountKey | int | true | fk | ||
| Amount | float | true |
| Property | Value |
| Business Name | FinanceKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | true |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 33918 |
| Remarks |
| Property | Value |
| Business Name | DateKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | DimDate |
| Foreign field | DateKey |
| Relationship type | Foreign Key |
| Relationship name | fk DimDate.DateKey to FactFinance.DateKey |
| Cardinality | 0..n |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 20040201 |
| Remarks |
| Property | Value |
| Business Name | OrganizationKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | DimOrganization |
| Foreign field | OrganizationKey |
| Relationship type | Foreign Key |
| Relationship name | fk DimOrganization.OrganizationKey to FactFinance.OrganizationKey |
| Cardinality | 0..n |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 5 |
| Remarks |
| Property | Value |
| Business Name | DepartmentGroupKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | DimDepartmentGroup |
| Foreign field | DepartmentGroupKey |
| Relationship type | Foreign Key |
| Relationship name | fk DimDepartmentGroup.DepartmentGroupKey to FactFinance.DepartmentGroupKey |
| Cardinality | 0..n |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 7 |
| Remarks |
| Property | Value |
| Business Name | ScenarioKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | DimScenario |
| Foreign field | ScenarioKey |
| Relationship type | Foreign Key |
| Relationship name | fk DimScenario.ScenarioKey to FactFinance.ScenarioKey |
| Cardinality | 0..n |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 1 |
| Remarks |
| Property | Value |
| Business Name | AccountKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | DimAccount |
| Foreign field | AccountKey |
| Relationship type | Foreign Key |
| Relationship name | fk DimAccount.AccountKey to FactFinance.AccountKey |
| Cardinality | 0..n |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 33 |
| Remarks |
| Property | Value |
| Business Name | Amount |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | float |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 29634 |
| Remarks |
| Property | Value |
| Primary key | |
| [1] Constraint name | |
| Key | |
| Unique key | |
| [1] Constraint name | |
| Key | |
| Alternate key | |
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"title": "FactFinance",
"additionalProperties": false,
"properties": {
"FinanceKey": {
"type": "number"
},
"DateKey": {
"type": "number"
},
"OrganizationKey": {
"type": "number"
},
"DepartmentGroupKey": {
"type": "number"
},
"ScenarioKey": {
"type": "number"
},
"AccountKey": {
"type": "number"
},
"Amount": {
"type": "number"
}
},
"required": [
"FinanceKey",
"DateKey",
"OrganizationKey",
"DepartmentGroupKey",
"ScenarioKey",
"AccountKey",
"Amount"
]
}{
"FinanceKey": 33918,
"DateKey": 20040201,
"OrganizationKey": 5,
"DepartmentGroupKey": 7,
"ScenarioKey": 1,
"AccountKey": 33,
"Amount": 29634
}IF NOT EXISTS (SELECT * FROM sys.databases WHERE name = N'[hacksqlpool]') begin CREATE DATABASE [hacksqlpool]; USE [hacksqlpool]; end; CREATE SCHEMA [dbo]; CREATE TABLE [dbo].[FactFinance] ( [FinanceKey] INT PRIMARY KEY NONCLUSTERED NOT ENFORCED NOT NULL, [DateKey] INT NOT NULL, [OrganizationKey] INT NOT NULL, [DepartmentGroupKey] INT NOT NULL, [ScenarioKey] INT NOT NULL, [AccountKey] INT NOT NULL, [Amount] FLOAT NOT NULL )WITH ( CLUSTERED COLUMNSTORE INDEX, DISTRIBUTION = ROUND_ROBIN );
| Property | Value |
| Table | FactInternetSales |
| Technical name | |
| Activated | true |
| Id | |
| Schema | dbo |
| Additional properties | false |
| $ref | |
| Comments | |
| If not exist | |
| Distribution | round_robin |
| Persistence | regular |
| SQL pool indexing | clustered columnstore index |
| Partition | |
| CTAS query | |
| Range for values | |
| Boundary value | |
| Remarks |
| Column | Type | Req | Key | Description | Comments |
| ProductKey | int | true | pk | ||
| OrderDateKey | int | true | |||
| DueDateKey | int | true | fk | ||
| ShipDateKey | int | true | fk | ||
| CustomerKey | int | true | fk | ||
| PromotionKey | int | true | fk | ||
| CurrencyKey | int | true | fk | ||
| SalesTerritoryKey | int | true | fk | ||
| SalesOrderNumber | nvarchar(20) | true | fk | ||
| SalesOrderLineNumber | tinyint | true | |||
| RevisionNumber | tinyint | true | |||
| OrderQuantity | smallint | true | |||
| UnitPrice | money | true | |||
| ExtendedAmount | money | true | |||
| UnitPriceDiscountPct | float | true | |||
| DiscountAmount | float | true | |||
| ProductStandardCost | money | true | |||
| TotalProductCost | money | true | |||
| SalesAmount | money | true | |||
| TaxAmt | money | true | |||
| Freight | money | true | |||
| CarrierTrackingNumber | nvarchar(25) | false | |||
| CustomerPONumber | nvarchar(25) | false |
| Property | Value |
| Business Name | ProductKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | true |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 373 |
| Remarks |
| Property | Value |
| Business Name | OrderDateKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 20020803 |
| Remarks |
| Property | Value |
| Business Name | DueDateKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | DimDate |
| Foreign field | DateKey |
| Relationship type | Foreign Key |
| Relationship name | fk FactInternetSales.DueDateKey to DimDate.DateKey |
| Cardinality | 1..n |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 20020815 |
| Remarks |
| Property | Value |
| Business Name | ShipDateKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | DimDate |
| Foreign field | DateKey |
| Relationship type | Foreign Key |
| Relationship name | fk FactInternetSales.ShipDateKey to DimDate.DateKey |
| Cardinality | 1..n |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 20020810 |
| Remarks |
| Property | Value |
| Business Name | CustomerKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | DimCustomer |
| Foreign field | CustomerKey |
| Relationship type | Foreign Key |
| Relationship name | fk FactInternetSales.CustomerKey to DimCustomer.CustomerKey |
| Cardinality | 1..n |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 13378 |
| Remarks |
| Property | Value |
| Business Name | PromotionKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | DimPromotion |
| Foreign field | PromotionKey |
| Relationship type | Foreign Key |
| Relationship name | fk FactInternetSales.PromotionKey to DimPromotion.PromotionKey |
| Cardinality | 1..n |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 1 |
| Remarks |
| Property | Value |
| Business Name | CurrencyKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | DimCurrency |
| Foreign field | CurrencyKey |
| Relationship type | Foreign Key |
| Relationship name | fk FactInternetSales.CurrencyKey to DimCurrency.CurrencyKey |
| Cardinality | 1..n |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 100 |
| Remarks |
| Property | Value |
| Business Name | SalesTerritoryKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | DimSalesTerritory |
| Foreign field | SalesTerritoryKey |
| Relationship type | Foreign Key |
| Relationship name | fk FactInternetSales.SalesTerritoryKey to DimSalesTerritory.SalesTerritoryKey |
| Cardinality | 1..n |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 4 |
| Remarks |
| Property | Value |
| Business Name | SalesOrderNumber |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 20 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | FactInternetSalesReason |
| Foreign field | SalesOrderNumber |
| Relationship type | Foreign Key |
| Relationship name | fk FactInternetSales.SalesOrderNumber to FactInternetSalesReason.SalesOrderNumber |
| Cardinality | 1..n |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | SO47086 |
| Remarks |
| Property | Value |
| Business Name | SalesOrderLineNumber |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | tinyint |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 1 |
| Remarks |
| Property | Value |
| Business Name | RevisionNumber |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | tinyint |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 1 |
| Remarks |
| Property | Value |
| Business Name | OrderQuantity |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | smallint |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 1 |
| Remarks |
| Property | Value |
| Business Name | UnitPrice |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | money |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 2181.5625 |
| Remarks |
| Property | Value |
| Business Name | ExtendedAmount |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | money |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 2181.5625 |
| Remarks |
| Property | Value |
| Business Name | UnitPriceDiscountPct |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | float |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 0 |
| Remarks |
| Property | Value |
| Business Name | DiscountAmount |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | float |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 0 |
| Remarks |
| Property | Value |
| Business Name | ProductStandardCost |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | money |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 1320.6838 |
| Remarks |
| Property | Value |
| Business Name | TotalProductCost |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | money |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 1320.6838 |
| Remarks |
| Property | Value |
| Business Name | SalesAmount |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | money |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 2181.5625 |
| Remarks |
| Property | Value |
| Business Name | TaxAmt |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | money |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 174.525 |
| Remarks |
| Property | Value |
| Business Name | Freight |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | money |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 54.5391 |
| Remarks |
| Property | Value |
| Business Name | CarrierTrackingNumber |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 25 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | |
| Remarks |
| Property | Value |
| Business Name | CustomerPONumber |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 25 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | |
| Remarks |
| Property | Value |
| Primary key | |
| [1] Constraint name | |
| Key | |
| Unique key | |
| [1] Constraint name | |
| Key | |
| Alternate key | |
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"title": "FactInternetSales",
"additionalProperties": false,
"properties": {
"ProductKey": {
"type": "number"
},
"OrderDateKey": {
"type": "number"
},
"DueDateKey": {
"type": "number"
},
"ShipDateKey": {
"type": "number"
},
"CustomerKey": {
"type": "number"
},
"PromotionKey": {
"type": "number"
},
"CurrencyKey": {
"type": "number"
},
"SalesTerritoryKey": {
"type": "number"
},
"SalesOrderNumber": {
"type": "string"
},
"SalesOrderLineNumber": {
"type": "number"
},
"RevisionNumber": {
"type": "number"
},
"OrderQuantity": {
"type": "number"
},
"UnitPrice": {
"type": "number"
},
"ExtendedAmount": {
"type": "number"
},
"UnitPriceDiscountPct": {
"type": "number"
},
"DiscountAmount": {
"type": "number"
},
"ProductStandardCost": {
"type": "number"
},
"TotalProductCost": {
"type": "number"
},
"SalesAmount": {
"type": "number"
},
"TaxAmt": {
"type": "number"
},
"Freight": {
"type": "number"
},
"CarrierTrackingNumber": {
"type": "string"
},
"CustomerPONumber": {
"type": "string"
}
},
"required": [
"ProductKey",
"OrderDateKey",
"DueDateKey",
"ShipDateKey",
"CustomerKey",
"PromotionKey",
"CurrencyKey",
"SalesTerritoryKey",
"SalesOrderNumber",
"SalesOrderLineNumber",
"RevisionNumber",
"OrderQuantity",
"UnitPrice",
"ExtendedAmount",
"UnitPriceDiscountPct",
"DiscountAmount",
"ProductStandardCost",
"TotalProductCost",
"SalesAmount",
"TaxAmt",
"Freight"
]
}{
"ProductKey": 373,
"OrderDateKey": 20020803,
"DueDateKey": 20020815,
"ShipDateKey": 20020810,
"CustomerKey": 13378,
"PromotionKey": 1,
"CurrencyKey": 100,
"SalesTerritoryKey": 4,
"SalesOrderNumber": "SO47086",
"SalesOrderLineNumber": 1,
"RevisionNumber": 1,
"OrderQuantity": 1,
"UnitPrice": 2181.5625,
"ExtendedAmount": 2181.5625,
"UnitPriceDiscountPct": 0,
"DiscountAmount": 0,
"ProductStandardCost": 1320.6838,
"TotalProductCost": 1320.6838,
"SalesAmount": 2181.5625,
"TaxAmt": 174.525,
"Freight": 54.5391,
"CarrierTrackingNumber": "Lorem",
"CustomerPONumber": "Lorem"
}IF NOT EXISTS (SELECT * FROM sys.databases WHERE name = N'[hacksqlpool]') begin CREATE DATABASE [hacksqlpool]; USE [hacksqlpool]; end; CREATE SCHEMA [dbo]; CREATE TABLE [dbo].[FactInternetSales] ( [ProductKey] INT PRIMARY KEY NONCLUSTERED NOT ENFORCED NOT NULL, [OrderDateKey] INT NOT NULL, [DueDateKey] INT NOT NULL, [ShipDateKey] INT NOT NULL, [CustomerKey] INT NOT NULL, [PromotionKey] INT NOT NULL, [CurrencyKey] INT NOT NULL, [SalesTerritoryKey] INT NOT NULL, [SalesOrderNumber] NVARCHAR(20) NOT NULL, [SalesOrderLineNumber] TINYINT NOT NULL, [RevisionNumber] TINYINT NOT NULL, [OrderQuantity] SMALLINT NOT NULL, [UnitPrice] MONEY NOT NULL, [ExtendedAmount] MONEY NOT NULL, [UnitPriceDiscountPct] FLOAT NOT NULL, [DiscountAmount] FLOAT NOT NULL, [ProductStandardCost] MONEY NOT NULL, [TotalProductCost] MONEY NOT NULL, [SalesAmount] MONEY NOT NULL, [TaxAmt] MONEY NOT NULL, [Freight] MONEY NOT NULL, [CarrierTrackingNumber] NVARCHAR(25), [CustomerPONumber] NVARCHAR(25) )WITH ( CLUSTERED COLUMNSTORE INDEX, DISTRIBUTION = ROUND_ROBIN );
| Property | Value |
| Table | FactInternetSalesReason |
| Technical name | |
| Activated | true |
| Id | |
| Schema | dbo |
| Additional properties | false |
| $ref | |
| Comments | |
| If not exist | |
| Distribution | round_robin |
| Persistence | regular |
| SQL pool indexing | clustered columnstore index |
| Partition | |
| CTAS query | |
| Range for values | |
| Boundary value | |
| Remarks |
| Column | Type | Req | Key | Description | Comments |
| SalesOrderNumber | nvarchar(20) | true | pk, dk | ||
| SalesOrderLineNumber | tinyint | true | |||
| SalesReasonKey | int | true | fk |
| Property | Value |
| Business Name | SalesOrderNumber |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 20 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Primary key | true |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | SO44461 |
| Remarks |
| Property | Value |
| Business Name | SalesOrderLineNumber |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | tinyint |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 1 |
| Remarks |
| Property | Value |
| Business Name | SalesReasonKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | DimSalesReason |
| Foreign field | SalesReasonKey |
| Relationship type | Foreign Key |
| Relationship name | fk FactInternetSalesReason.SalesReasonKey to DimSalesReason.SalesReasonKey |
| Cardinality | 1..n |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 5 |
| Remarks |
| Property | Value |
| Primary key | |
| [1] Constraint name | |
| Key | |
| Unique key | |
| [1] Constraint name | |
| Key | |
| Alternate key | |
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"title": "FactInternetSalesReason",
"additionalProperties": false,
"properties": {
"SalesOrderNumber": {
"type": "string"
},
"SalesOrderLineNumber": {
"type": "number"
},
"SalesReasonKey": {
"type": "number"
}
},
"required": [
"SalesOrderNumber",
"SalesOrderLineNumber",
"SalesReasonKey"
]
}{
"SalesOrderNumber": "SO44461",
"SalesOrderLineNumber": 1,
"SalesReasonKey": 5
}IF NOT EXISTS (SELECT * FROM sys.databases WHERE name = N'[hacksqlpool]') begin CREATE DATABASE [hacksqlpool]; USE [hacksqlpool]; end; CREATE SCHEMA [dbo]; CREATE TABLE [dbo].[FactInternetSalesReason] ( [SalesOrderNumber] NVARCHAR(20) PRIMARY KEY NONCLUSTERED NOT ENFORCED NOT NULL, [SalesOrderLineNumber] TINYINT NOT NULL, [SalesReasonKey] INT NOT NULL )WITH ( CLUSTERED COLUMNSTORE INDEX, DISTRIBUTION = ROUND_ROBIN );
| Property | Value |
| Table | FactResellerSales |
| Technical name | |
| Activated | true |
| Id | |
| Schema | dbo |
| Additional properties | false |
| $ref | |
| Comments | |
| If not exist | |
| Distribution | round_robin |
| Persistence | regular |
| SQL pool indexing | clustered columnstore index |
| Partition | |
| CTAS query | |
| Range for values | |
| Boundary value | |
| Remarks |
| Column | Type | Req | Key | Description | Comments |
| ProductKey | int | true | pk | ||
| OrderDateKey | int | true | |||
| DueDateKey | int | true | fk | ||
| ShipDateKey | int | true | fk | ||
| ResellerKey | int | true | fk | ||
| EmployeeKey | int | true | fk | ||
| PromotionKey | int | true | fk | ||
| CurrencyKey | int | true | fk | ||
| SalesTerritoryKey | int | true | fk | ||
| SalesOrderNumber | nvarchar(20) | true | fk | ||
| SalesOrderLineNumber | tinyint | true | |||
| RevisionNumber | tinyint | false | |||
| OrderQuantity | smallint | false | |||
| UnitPrice | money | false | |||
| ExtendedAmount | money | false | |||
| UnitPriceDiscountPct | float | false | |||
| DiscountAmount | float | false | |||
| ProductStandardCost | money | false | |||
| TotalProductCost | money | false | |||
| SalesAmount | money | false | |||
| TaxAmt | money | false | |||
| Freight | money | false | |||
| CarrierTrackingNumber | nvarchar(25) | false | |||
| CustomerPONumber | nvarchar(25) | false |
| Property | Value |
| Business Name | ProductKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | true |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 230 |
| Remarks |
| Property | Value |
| Business Name | OrderDateKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 20020701 |
| Remarks |
| Property | Value |
| Business Name | DueDateKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | DimDate |
| Foreign field | DateKey |
| Relationship type | Foreign Key |
| Relationship name | fk FactResellerSales.DueDateKey to DimDate.DateKey |
| Cardinality | 1..n |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 20020713 |
| Remarks |
| Property | Value |
| Business Name | ShipDateKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | DimDate |
| Foreign field | DateKey |
| Relationship type | Foreign Key |
| Relationship name | fk FactResellerSales.ShipDateKey to DimDate.DateKey |
| Cardinality | 1..n |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 20020708 |
| Remarks |
| Property | Value |
| Business Name | ResellerKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | DimReseller |
| Foreign field | ResellerKey |
| Relationship type | Foreign Key |
| Relationship name | fk FactResellerSales.ResellerKey to DimReseller.ResellerKey |
| Cardinality | 1..n |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 618 |
| Remarks |
| Property | Value |
| Business Name | EmployeeKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | DimEmployee |
| Foreign field | EmployeeKey |
| Relationship type | Foreign Key |
| Relationship name | fk FactResellerSales.EmployeeKey to DimEmployee.EmployeeKey |
| Cardinality | 1..n |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 281 |
| Remarks |
| Property | Value |
| Business Name | PromotionKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | DimPromotion |
| Foreign field | PromotionKey |
| Relationship type | Foreign Key |
| Relationship name | fk FactResellerSales.PromotionKey to DimPromotion.PromotionKey |
| Cardinality | 1..n |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 1 |
| Remarks |
| Property | Value |
| Business Name | CurrencyKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | DimCurrency |
| Foreign field | CurrencyKey |
| Relationship type | Foreign Key |
| Relationship name | fk FactResellerSales.CurrencyKey to DimCurrency.CurrencyKey |
| Cardinality | 1..n |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 100 |
| Remarks |
| Property | Value |
| Business Name | SalesTerritoryKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | DimSalesTerritory |
| Foreign field | SalesTerritoryKey |
| Relationship type | Foreign Key |
| Relationship name | fk FactResellerSales.SalesTerritoryKey to DimSalesTerritory.SalesTerritoryKey |
| Cardinality | 1..n |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 2 |
| Remarks |
| Property | Value |
| Business Name | SalesOrderNumber |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 20 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | FactInternetSalesReason |
| Foreign field | SalesOrderNumber |
| Relationship type | Foreign Key |
| Relationship name | fk FactResellerSales.SalesOrderNumber to FactInternetSalesReason.SalesOrderNumber |
| Cardinality | 1..n |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | SO46620 |
| Remarks |
| Property | Value |
| Business Name | SalesOrderLineNumber |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | tinyint |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 49 |
| Remarks |
| Property | Value |
| Business Name | RevisionNumber |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | tinyint |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 1 |
| Remarks |
| Property | Value |
| Business Name | OrderQuantity |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | smallint |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 4 |
| Remarks |
| Property | Value |
| Business Name | UnitPrice |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | money |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 28.8404 |
| Remarks |
| Property | Value |
| Business Name | ExtendedAmount |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | money |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 115.3616 |
| Remarks |
| Property | Value |
| Business Name | UnitPriceDiscountPct |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | float |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 0 |
| Remarks |
| Property | Value |
| Business Name | DiscountAmount |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | float |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 0 |
| Remarks |
| Property | Value |
| Business Name | ProductStandardCost |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | money |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 29.0807 |
| Remarks |
| Property | Value |
| Business Name | TotalProductCost |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | money |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 116.3228 |
| Remarks |
| Property | Value |
| Business Name | SalesAmount |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | money |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 115.3616 |
| Remarks |
| Property | Value |
| Business Name | TaxAmt |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | money |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 9.2289 |
| Remarks |
| Property | Value |
| Business Name | Freight |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | money |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 2.884 |
| Remarks |
| Property | Value |
| Business Name | CarrierTrackingNumber |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 25 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | FEE3-4994-8E |
| Remarks |
| Property | Value |
| Business Name | CustomerPONumber |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 25 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | PO13775143788 |
| Remarks |
| Property | Value |
| Primary key | |
| [1] Constraint name | |
| Key | |
| Unique key | |
| [1] Constraint name | |
| Key | |
| Alternate key | |
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"title": "FactResellerSales",
"additionalProperties": false,
"properties": {
"ProductKey": {
"type": "number"
},
"OrderDateKey": {
"type": "number"
},
"DueDateKey": {
"type": "number"
},
"ShipDateKey": {
"type": "number"
},
"ResellerKey": {
"type": "number"
},
"EmployeeKey": {
"type": "number"
},
"PromotionKey": {
"type": "number"
},
"CurrencyKey": {
"type": "number"
},
"SalesTerritoryKey": {
"type": "number"
},
"SalesOrderNumber": {
"type": "string"
},
"SalesOrderLineNumber": {
"type": "number"
},
"RevisionNumber": {
"type": "number"
},
"OrderQuantity": {
"type": "number"
},
"UnitPrice": {
"type": "number"
},
"ExtendedAmount": {
"type": "number"
},
"UnitPriceDiscountPct": {
"type": "number"
},
"DiscountAmount": {
"type": "number"
},
"ProductStandardCost": {
"type": "number"
},
"TotalProductCost": {
"type": "number"
},
"SalesAmount": {
"type": "number"
},
"TaxAmt": {
"type": "number"
},
"Freight": {
"type": "number"
},
"CarrierTrackingNumber": {
"type": "string"
},
"CustomerPONumber": {
"type": "string"
}
},
"required": [
"ProductKey",
"OrderDateKey",
"DueDateKey",
"ShipDateKey",
"ResellerKey",
"EmployeeKey",
"PromotionKey",
"CurrencyKey",
"SalesTerritoryKey",
"SalesOrderNumber",
"SalesOrderLineNumber"
]
}{
"ProductKey": 230,
"OrderDateKey": 20020701,
"DueDateKey": 20020713,
"ShipDateKey": 20020708,
"ResellerKey": 618,
"EmployeeKey": 281,
"PromotionKey": 1,
"CurrencyKey": 100,
"SalesTerritoryKey": 2,
"SalesOrderNumber": "SO46620",
"SalesOrderLineNumber": 49,
"RevisionNumber": 1,
"OrderQuantity": 4,
"UnitPrice": 28.8404,
"ExtendedAmount": 115.3616,
"UnitPriceDiscountPct": 0,
"DiscountAmount": 0,
"ProductStandardCost": 29.0807,
"TotalProductCost": 116.3228,
"SalesAmount": 115.3616,
"TaxAmt": 9.2289,
"Freight": 2.884,
"CarrierTrackingNumber": "FEE3-4994-8E",
"CustomerPONumber": "PO13775143788"
}IF NOT EXISTS (SELECT * FROM sys.databases WHERE name = N'[hacksqlpool]') begin CREATE DATABASE [hacksqlpool]; USE [hacksqlpool]; end; CREATE SCHEMA [dbo]; CREATE TABLE [dbo].[FactResellerSales] ( [ProductKey] INT PRIMARY KEY NONCLUSTERED NOT ENFORCED NOT NULL, [OrderDateKey] INT NOT NULL, [DueDateKey] INT NOT NULL, [ShipDateKey] INT NOT NULL, [ResellerKey] INT NOT NULL, [EmployeeKey] INT NOT NULL, [PromotionKey] INT NOT NULL, [CurrencyKey] INT NOT NULL, [SalesTerritoryKey] INT NOT NULL, [SalesOrderNumber] NVARCHAR(20) NOT NULL, [SalesOrderLineNumber] TINYINT NOT NULL, [RevisionNumber] TINYINT, [OrderQuantity] SMALLINT, [UnitPrice] MONEY, [ExtendedAmount] MONEY, [UnitPriceDiscountPct] FLOAT, [DiscountAmount] FLOAT, [ProductStandardCost] MONEY, [TotalProductCost] MONEY, [SalesAmount] MONEY, [TaxAmt] MONEY, [Freight] MONEY, [CarrierTrackingNumber] NVARCHAR(25), [CustomerPONumber] NVARCHAR(25) )WITH ( CLUSTERED COLUMNSTORE INDEX, DISTRIBUTION = ROUND_ROBIN );
| Property | Value |
| Table | FactSalesQuota |
| Technical name | |
| Activated | true |
| Id | |
| Schema | dbo |
| Additional properties | false |
| $ref | |
| Comments | |
| If not exist | |
| Distribution | round_robin |
| Persistence | regular |
| SQL pool indexing | clustered columnstore index |
| Partition | |
| CTAS query | |
| Range for values | |
| Boundary value | |
| Remarks |
| Column | Type | Req | Key | Description | Comments |
| SalesQuotaKey | int | true | pk | ||
| EmployeeKey | int | true | fk | ||
| DateKey | int | true | fk | ||
| CalendarYear | smallint | true | |||
| CalendarQuarter | tinyint | true | |||
| SalesAmountQuota | money | true |
| Property | Value |
| Business Name | SalesQuotaKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | true |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 135 |
| Remarks |
| Property | Value |
| Business Name | EmployeeKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | DimEmployee |
| Foreign field | EmployeeKey |
| Relationship type | Foreign Key |
| Relationship name | fk FactSalesQuota.EmployeeKey to DimEmployee.EmployeeKey |
| Cardinality | 1..n |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 285 |
| Remarks |
| Property | Value |
| Business Name | DateKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | DimDate |
| Foreign field | DateKey |
| Relationship type | Foreign Key |
| Relationship name | fk FactSalesQuota.DateKey to DimDate.DateKey |
| Cardinality | 1..n |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 20040101 |
| Remarks |
| Property | Value |
| Business Name | CalendarYear |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | smallint |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 2004 |
| Remarks |
| Property | Value |
| Business Name | CalendarQuarter |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | tinyint |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 1 |
| Remarks |
| Property | Value |
| Business Name | SalesAmountQuota |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | money |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 538000 |
| Remarks |
| Property | Value |
| Primary key | |
| [1] Constraint name | |
| Key | |
| Unique key | |
| [1] Constraint name | |
| Key | |
| Alternate key | |
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"title": "FactSalesQuota",
"additionalProperties": false,
"properties": {
"SalesQuotaKey": {
"type": "number"
},
"EmployeeKey": {
"type": "number"
},
"DateKey": {
"type": "number"
},
"CalendarYear": {
"type": "number"
},
"CalendarQuarter": {
"type": "number"
},
"SalesAmountQuota": {
"type": "number"
}
},
"required": [
"SalesQuotaKey",
"EmployeeKey",
"DateKey",
"CalendarYear",
"CalendarQuarter",
"SalesAmountQuota"
]
}{
"SalesQuotaKey": 135,
"EmployeeKey": 285,
"DateKey": 20040101,
"CalendarYear": 2004,
"CalendarQuarter": 1,
"SalesAmountQuota": 538000
}IF NOT EXISTS (SELECT * FROM sys.databases WHERE name = N'[hacksqlpool]') begin CREATE DATABASE [hacksqlpool]; USE [hacksqlpool]; end; CREATE SCHEMA [dbo]; CREATE TABLE [dbo].[FactSalesQuota] ( [SalesQuotaKey] INT PRIMARY KEY NONCLUSTERED NOT ENFORCED NOT NULL, [EmployeeKey] INT NOT NULL, [DateKey] INT NOT NULL, [CalendarYear] SMALLINT NOT NULL, [CalendarQuarter] TINYINT NOT NULL, [SalesAmountQuota] MONEY NOT NULL )WITH ( CLUSTERED COLUMNSTORE INDEX, DISTRIBUTION = ROUND_ROBIN );
| Property | Value |
| Table | FactSurveyResponse |
| Technical name | |
| Activated | true |
| Id | |
| Schema | dbo |
| Additional properties | false |
| $ref | |
| Comments | |
| If not exist | |
| Distribution | round_robin |
| Persistence | regular |
| SQL pool indexing | clustered columnstore index |
| Partition | |
| CTAS query | |
| Range for values | |
| Boundary value | |
| Remarks |
| Column | Type | Req | Key | Description | Comments |
| SurveyResponseKey | int | true | pk | ||
| DateKey | int | true | fk | ||
| CustomerKey | int | true | fk | ||
| ProductCategoryKey | int | true | fk | ||
| EnglishProductCategoryName | nvarchar(50) | true | |||
| ProductSubcategoryKey | int | true | fk | ||
| EnglishProductSubcategoryName | nvarchar(50) | true |
| Property | Value |
| Business Name | SurveyResponseKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | true |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 527 |
| Remarks |
| Property | Value |
| Business Name | DateKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | DimDate |
| Foreign field | DateKey |
| Relationship type | Foreign Key |
| Relationship name | fk FactSurveyResponse.DateKey to DimDate.DateKey |
| Cardinality | 1..n |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 20020906 |
| Remarks |
| Property | Value |
| Business Name | CustomerKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | DimCustomer |
| Foreign field | CustomerKey |
| Relationship type | Foreign Key |
| Relationship name | fk FactSurveyResponse.CustomerKey to DimCustomer.CustomerKey |
| Cardinality | 1..n |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 16032 |
| Remarks |
| Property | Value |
| Business Name | ProductCategoryKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | DimProductCategory |
| Foreign field | ProductCategoryKey |
| Relationship type | Foreign Key |
| Relationship name | fk FactSurveyResponse.ProductCategoryKey to DimProductCategory.ProductCategoryKey |
| Cardinality | 1..n |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 4 |
| Remarks |
| Property | Value |
| Business Name | EnglishProductCategoryName |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 50 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | Accessories |
| Remarks |
| Property | Value |
| Business Name | ProductSubcategoryKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | DimProductSubcategory |
| Foreign field | ProductSubcategoryKey |
| Relationship type | Foreign Key |
| Relationship name | fk FactSurveyResponse.ProductSubcategoryKey to DimProductSubcategory.ProductSubcategoryKey |
| Cardinality | 1..n |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 26 |
| Remarks |
| Property | Value |
| Business Name | EnglishProductSubcategoryName |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 50 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | Bike Racks |
| Remarks |
| Property | Value |
| Primary key | |
| [1] Constraint name | |
| Key | |
| Unique key | |
| [1] Constraint name | |
| Key | |
| Alternate key | |
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"title": "FactSurveyResponse",
"additionalProperties": false,
"properties": {
"SurveyResponseKey": {
"type": "number"
},
"DateKey": {
"type": "number"
},
"CustomerKey": {
"type": "number"
},
"ProductCategoryKey": {
"type": "number"
},
"EnglishProductCategoryName": {
"type": "string"
},
"ProductSubcategoryKey": {
"type": "number"
},
"EnglishProductSubcategoryName": {
"type": "string"
}
},
"required": [
"SurveyResponseKey",
"DateKey",
"CustomerKey",
"ProductCategoryKey",
"EnglishProductCategoryName",
"ProductSubcategoryKey",
"EnglishProductSubcategoryName"
]
}{
"SurveyResponseKey": 527,
"DateKey": 20020906,
"CustomerKey": 16032,
"ProductCategoryKey": 4,
"EnglishProductCategoryName": "Accessories",
"ProductSubcategoryKey": 26,
"EnglishProductSubcategoryName": "Bike Racks"
}IF NOT EXISTS (SELECT * FROM sys.databases WHERE name = N'[hacksqlpool]') begin CREATE DATABASE [hacksqlpool]; USE [hacksqlpool]; end; CREATE SCHEMA [dbo]; CREATE TABLE [dbo].[FactSurveyResponse] ( [SurveyResponseKey] INT PRIMARY KEY NONCLUSTERED NOT ENFORCED NOT NULL, [DateKey] INT NOT NULL, [CustomerKey] INT NOT NULL, [ProductCategoryKey] INT NOT NULL, [EnglishProductCategoryName] NVARCHAR(50) NOT NULL, [ProductSubcategoryKey] INT NOT NULL, [EnglishProductSubcategoryName] NVARCHAR(50) NOT NULL )WITH ( CLUSTERED COLUMNSTORE INDEX, DISTRIBUTION = ROUND_ROBIN );
| Property | Value |
| Table | ProspectiveBuyer |
| Technical name | |
| Activated | true |
| Id | |
| Schema | dbo |
| Additional properties | false |
| $ref | |
| Comments | |
| If not exist | |
| Distribution | round_robin |
| Persistence | regular |
| SQL pool indexing | clustered columnstore index |
| Partition | |
| CTAS query | |
| Range for values | |
| Boundary value | |
| Remarks |
| Column | Type | Req | Key | Description | Comments |
| ProspectiveBuyerKey | int | true | pk | ||
| ProspectAlternateKey | nvarchar(15) | false | |||
| FirstName | nvarchar(50) | false | |||
| MiddleName | nvarchar(50) | false | |||
| LastName | nvarchar(50) | false | |||
| BirthDate | datetime | false | |||
| MaritalStatus | nchar(1) | false | |||
| Gender | nvarchar(1) | false | |||
| EmailAddress | nvarchar(50) | false | |||
| YearlyIncome | money | false | |||
| TotalChildren | tinyint | false | |||
| NumberChildrenAtHome | tinyint | false | |||
| Education | nvarchar(40) | false | |||
| Occupation | nvarchar(100) | false | |||
| HouseOwnerFlag | nchar(1) | false | |||
| NumberCarsOwned | tinyint | false | |||
| AddressLine1 | nvarchar(120) | false | |||
| AddressLine2 | nvarchar(120) | false | |||
| City | nvarchar(30) | false | |||
| StateProvinceCode | nvarchar(3) | false | |||
| PostalCode | nvarchar(15) | false | |||
| Phone | nvarchar(20) | false | |||
| Salutation | nvarchar(8) | false | |||
| Unknown | int | false |
| Property | Value |
| Business Name | ProspectiveBuyerKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | true |
| Masked with function | |
| Identity | |
| Primary key | true |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 291 |
| Remarks |
| Property | Value |
| Business Name | ProspectAlternateKey |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 15 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | 7164 |
| Remarks |
| Property | Value |
| Business Name | FirstName |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 50 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | Billy |
| Remarks |
| Property | Value |
| Business Name | MiddleName |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 50 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | D |
| Remarks |
| Property | Value |
| Business Name | LastName |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 50 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | Vazquez |
| Remarks |
| Property | Value |
| Business Name | BirthDate |
| Technical name | |
| Activated | true |
| Id | |
| Type | datetime |
| Subtype | datetime |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Pattern | |
| Default | |
| Default constraint name | |
| Enum | |
| Faker function | |
| Sample | 1964-11-11T00:00:00.000Z |
| Remarks |
| Property | Value |
| Business Name | MaritalStatus |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nchar |
| Length | 1 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | S |
| Remarks |
| Property | Value |
| Business Name | Gender |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 1 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | M |
| Remarks |
| Property | Value |
| Business Name | EmailAddress |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 50 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | bvazquez@contoso.com |
| Remarks |
| Property | Value |
| Business Name | YearlyIncome |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | money |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 80000 |
| Remarks |
| Property | Value |
| Business Name | TotalChildren |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | tinyint |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 4 |
| Remarks |
| Property | Value |
| Business Name | NumberChildrenAtHome |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | tinyint |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 3 |
| Remarks |
| Property | Value |
| Business Name | Education |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 40 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | Partial Co |
| Remarks |
| Property | Value |
| Business Name | Occupation |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 100 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | Professional |
| Remarks |
| Property | Value |
| Business Name | HouseOwnerFlag |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nchar |
| Length | 1 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | 1 |
| Remarks |
| Property | Value |
| Business Name | NumberCarsOwned |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | tinyint |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 1 |
| Remarks |
| Property | Value |
| Business Name | AddressLine1 |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 120 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | 1880 Birchwood |
| Remarks |
| Property | Value |
| Business Name | AddressLine2 |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 120 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | #9 |
| Remarks |
| Property | Value |
| Business Name | City |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 30 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | San Gabriel |
| Remarks |
| Property | Value |
| Business Name | StateProvinceCode |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 3 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | CA |
| Remarks |
| Property | Value |
| Business Name | PostalCode |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 15 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | 91776 |
| Remarks |
| Property | Value |
| Business Name | Phone |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 20 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | 401-555-0114 |
| Remarks |
| Property | Value |
| Business Name | Salutation |
| Technical name | |
| Activated | true |
| Id | |
| Type | char |
| Subtype | nvarchar |
| Length | 8 |
| Default | |
| Collate | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Min length | |
| Pattern | |
| Format | |
| Enum | |
| Faker function | |
| Sample | Mr. |
| Remarks |
| Property | Value |
| Business Name | Unknown |
| Technical name | |
| Activated | true |
| Id | |
| Type | numeric |
| Subtype | int |
| Default | |
| Default constraint name | |
| Comments | |
| Not null | |
| Masked with function | |
| Identity | |
| Primary key | |
| Unique | |
| Foreign table | |
| Foreign field | |
| Relationship type | |
| Relationship name | |
| Cardinality | |
| Unit | |
| Min value | |
| Excl min | |
| Max value | |
| Excl max | |
| Multiple of | |
| Divisible by | |
| Pattern | |
| Enum | |
| Faker function | |
| Sample | 4 |
| Remarks |
| Property | Value |
| Primary key | |
| [1] Constraint name | |
| Key | |
| Unique key | |
| [1] Constraint name | |
| Key | |
| Alternate key | |
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"title": "ProspectiveBuyer",
"additionalProperties": false,
"properties": {
"ProspectiveBuyerKey": {
"type": "number"
},
"ProspectAlternateKey": {
"type": "string"
},
"FirstName": {
"type": "string"
},
"MiddleName": {
"type": "string"
},
"LastName": {
"type": "string"
},
"BirthDate": {
"type": "string",
"maxLength": 24
},
"MaritalStatus": {
"type": "string"
},
"Gender": {
"type": "string"
},
"EmailAddress": {
"type": "string"
},
"YearlyIncome": {
"type": "number"
},
"TotalChildren": {
"type": "number"
},
"NumberChildrenAtHome": {
"type": "number"
},
"Education": {
"type": "string"
},
"Occupation": {
"type": "string"
},
"HouseOwnerFlag": {
"type": "string"
},
"NumberCarsOwned": {
"type": "number"
},
"AddressLine1": {
"type": "string"
},
"AddressLine2": {
"type": "string"
},
"City": {
"type": "string"
},
"StateProvinceCode": {
"type": "string"
},
"PostalCode": {
"type": "string"
},
"Phone": {
"type": "string"
},
"Salutation": {
"type": "string"
},
"Unknown": {
"type": "number"
}
},
"required": [
"ProspectiveBuyerKey"
]
}{
"ProspectiveBuyerKey": 291,
"ProspectAlternateKey": "7164",
"FirstName": "Billy",
"MiddleName": "D",
"LastName": "Vazquez",
"BirthDate": "1964-11-11T00:00:00.000Z",
"MaritalStatus": "S",
"Gender": "M",
"EmailAddress": "bvazquez@contoso.com",
"YearlyIncome": 80000,
"TotalChildren": 4,
"NumberChildrenAtHome": 3,
"Education": "Partial Co",
"Occupation": "Professional",
"HouseOwnerFlag": "1",
"NumberCarsOwned": 1,
"AddressLine1": "1880 Birchwood",
"AddressLine2": "#9",
"City": "San Gabriel",
"StateProvinceCode": "CA",
"PostalCode": "91776",
"Phone": "401-555-0114",
"Salutation": "Mr.",
"Unknown": 4
}IF NOT EXISTS (SELECT * FROM sys.databases WHERE name = N'[hacksqlpool]') begin CREATE DATABASE [hacksqlpool]; USE [hacksqlpool]; end; CREATE SCHEMA [dbo]; CREATE TABLE [dbo].[ProspectiveBuyer] ( [ProspectiveBuyerKey] INT PRIMARY KEY NONCLUSTERED NOT ENFORCED NOT NULL, [ProspectAlternateKey] NVARCHAR(15), [FirstName] NVARCHAR(50), [MiddleName] NVARCHAR(50), [LastName] NVARCHAR(50), [BirthDate] DATETIME, [MaritalStatus] NCHAR(1), [Gender] NVARCHAR(1), [EmailAddress] NVARCHAR(50), [YearlyIncome] MONEY, [TotalChildren] TINYINT, [NumberChildrenAtHome] TINYINT, [Education] NVARCHAR(40), [Occupation] NVARCHAR(100), [HouseOwnerFlag] NCHAR(1), [NumberCarsOwned] TINYINT, [AddressLine1] NVARCHAR(120), [AddressLine2] NVARCHAR(120), [City] NVARCHAR(30), [StateProvinceCode] NVARCHAR(3), [PostalCode] NVARCHAR(15), [Phone] NVARCHAR(20), [Salutation] NVARCHAR(8), [Unknown] INT )WITH ( CLUSTERED COLUMNSTORE INDEX, DISTRIBUTION = ROUND_ROBIN );
IF NOT EXISTS (SELECT * FROM sys.databases WHERE name = N'[hacksqlpool]') begin CREATE DATABASE [hacksqlpool]; USE [hacksqlpool]; end; CREATE SCHEMA [dbo]; CREATE TABLE [dbo].[AdventureWorksDWBuildVersion] ( [DBVersion] NVARCHAR(50) PRIMARY KEY NONCLUSTERED NOT ENFORCED NOT NULL, [VersionDate] DATETIME NOT NULL )WITH ( CLUSTERED COLUMNSTORE INDEX, DISTRIBUTION = ROUND_ROBIN ); CREATE TABLE [dbo].[DatabaseLog] ( [DatabaseLogID] INT PRIMARY KEY NONCLUSTERED NOT ENFORCED NOT NULL, [PostTime] DATETIME NOT NULL, [DatabaseUser] NVARCHAR(128) NOT NULL, [Event] NVARCHAR(128) NOT NULL, [Schema] NVARCHAR(128), [Object] NVARCHAR(128), [TSQL] NVARCHAR(4000) NOT NULL )WITH ( CLUSTERED COLUMNSTORE INDEX, DISTRIBUTION = ROUND_ROBIN ); CREATE TABLE [dbo].[DimAccount] ( [AccountKey] INT PRIMARY KEY NONCLUSTERED NOT ENFORCED NOT NULL, [ParentAccountKey] INT, [AccountCodeAlternateKey] INT, [ParentAccountCodeAlternateKey] INT, [AccountDescription] NVARCHAR(50), [AccountType] NVARCHAR(50), [Operator] NVARCHAR(50), [CustomMembers] NVARCHAR(300), [ValueType] NVARCHAR(50), [CustomMemberOptions] NVARCHAR(200) )WITH ( CLUSTERED COLUMNSTORE INDEX, DISTRIBUTION = ROUND_ROBIN ); CREATE TABLE [dbo].[DimCurrency] ( [CurrencyKey] INT PRIMARY KEY NONCLUSTERED NOT ENFORCED NOT NULL, [CurrencyAlternateKey] NCHAR(3) NOT NULL, [CurrencyName] NVARCHAR(50) NOT NULL )WITH ( CLUSTERED COLUMNSTORE INDEX, DISTRIBUTION = ROUND_ROBIN ); CREATE TABLE [dbo].[DimSalesTerritory] ( [SalesTerritoryKey] INT PRIMARY KEY NONCLUSTERED NOT ENFORCED NOT NULL, [SalesTerritoryAlternateKey] INT, [SalesTerritoryRegion] NVARCHAR(50) NOT NULL, [SalesTerritoryCountry] NVARCHAR(50) NOT NULL, [SalesTerritoryGroup] NVARCHAR(50) )WITH ( CLUSTERED COLUMNSTORE INDEX, DISTRIBUTION = ROUND_ROBIN ); CREATE TABLE [dbo].[DimGeography] ( [GeographyKey] INT PRIMARY KEY NONCLUSTERED NOT ENFORCED NOT NULL, [City] NVARCHAR(30), [StateProvinceCode] NVARCHAR(3), [StateProvinceName] NVARCHAR(50), [CountryRegionCode] NVARCHAR(3), [EnglishCountryRegionName] NVARCHAR(50), [SpanishCountryRegionName] NVARCHAR(50), [FrenchCountryRegionName] NVARCHAR(50), [PostalCode] NVARCHAR(15), [SalesTerritoryKey] INT )WITH ( CLUSTERED COLUMNSTORE INDEX, DISTRIBUTION = ROUND_ROBIN ); CREATE TABLE [dbo].[DimCustomer] ( [CustomerKey] INT PRIMARY KEY NONCLUSTERED NOT ENFORCED NOT NULL, [GeographyKey] INT, [CustomerAlternateKey] NVARCHAR(15) NOT NULL, [Title] NVARCHAR(8), [FirstName] NVARCHAR(50), [MiddleName] NVARCHAR(50), [LastName] NVARCHAR(50), [NameStyle] BIT, [BirthDate] DATE, [MaritalStatus] NCHAR(1), [Suffix] NVARCHAR(10), [Gender] NVARCHAR(1), [EmailAddress] NVARCHAR(50), [YearlyIncome] MONEY, [TotalChildren] TINYINT, [NumberChildrenAtHome] TINYINT, [EnglishEducation] NVARCHAR(40), [SpanishEducation] NVARCHAR(40), [FrenchEducation] NVARCHAR(40), [EnglishOccupation] NVARCHAR(100), [SpanishOccupation] NVARCHAR(100), [FrenchOccupation] NVARCHAR(100), [HouseOwnerFlag] NCHAR(1), [NumberCarsOwned] TINYINT, [AddressLine1] NVARCHAR(120), [AddressLine2] NVARCHAR(120), [Phone] NVARCHAR(20), [DateFirstPurchase] DATE, [CommuteDistance] NVARCHAR(15) )WITH ( CLUSTERED COLUMNSTORE INDEX, DISTRIBUTION = ROUND_ROBIN ); CREATE TABLE [dbo].[DimDate] ( [DateKey] INT PRIMARY KEY NONCLUSTERED NOT ENFORCED NOT NULL, [FullDateAlternateKey] DATE NOT NULL, [DayNumberOfWeek] TINYINT NOT NULL, [EnglishDayNameOfWeek] NVARCHAR(10) NOT NULL, [SpanishDayNameOfWeek] NVARCHAR(10) NOT NULL, [FrenchDayNameOfWeek] NVARCHAR(10) NOT NULL, [DayNumberOfMonth] TINYINT NOT NULL, [DayNumberOfYear] SMALLINT NOT NULL, [WeekNumberOfYear] TINYINT NOT NULL, [EnglishMonthName] NVARCHAR(10) NOT NULL, [SpanishMonthName] NVARCHAR(10) NOT NULL, [FrenchMonthName] NVARCHAR(10) NOT NULL, [MonthNumberOfYear] TINYINT NOT NULL, [CalendarQuarter] TINYINT NOT NULL, [CalendarYear] SMALLINT NOT NULL, [CalendarSemester] TINYINT NOT NULL, [FiscalQuarter] TINYINT NOT NULL, [FiscalYear] SMALLINT NOT NULL, [FiscalSemester] TINYINT NOT NULL )WITH ( CLUSTERED COLUMNSTORE INDEX, DISTRIBUTION = ROUND_ROBIN ); CREATE TABLE [dbo].[DimDepartmentGroup] ( [DepartmentGroupKey] INT PRIMARY KEY NONCLUSTERED NOT ENFORCED NOT NULL, [ParentDepartmentGroupKey] INT, [DepartmentGroupName] NVARCHAR(50) )WITH ( CLUSTERED COLUMNSTORE INDEX, DISTRIBUTION = ROUND_ROBIN ); CREATE TABLE [dbo].[DimEmployee] ( [EmployeeKey] INT PRIMARY KEY NONCLUSTERED NOT ENFORCED NOT NULL, [ParentEmployeeKey] INT, [EmployeeNationalIDAlternateKey] NVARCHAR(15), [ParentEmployeeNationalIDAlternateKey] NVARCHAR(15), [SalesTerritoryKey] INT, [FirstName] NVARCHAR(50) NOT NULL, [LastName] NVARCHAR(50) NOT NULL, [MiddleName] NVARCHAR(50), [NameStyle] BIT NOT NULL, [Title] NVARCHAR(50), [HireDate] DATE, [BirthDate] DATE, [LoginID] NVARCHAR(256), [EmailAddress] NVARCHAR(50), [Phone] NVARCHAR(25), [MaritalStatus] NCHAR(1), [EmergencyContactName] NVARCHAR(50), [EmergencyContactPhone] NVARCHAR(25), [SalariedFlag] BIT, [Gender] NCHAR(1), [PayFrequency] TINYINT, [BaseRate] MONEY, [VacationHours] SMALLINT, [SickLeaveHours] SMALLINT, [CurrentFlag] BIT NOT NULL, [SalesPersonFlag] BIT NOT NULL, [DepartmentName] NVARCHAR(50), [StartDate] DATE, [EndDate] DATE, [Status] NVARCHAR(50) )WITH ( CLUSTERED COLUMNSTORE INDEX, DISTRIBUTION = ROUND_ROBIN ); CREATE TABLE [dbo].[DimOrganization] ( [OrganizationKey] INT PRIMARY KEY NONCLUSTERED NOT ENFORCED NOT NULL, [ParentOrganizationKey] INT, [PercentageOfOwnership] NVARCHAR(16), [OrganizationName] NVARCHAR(50), [CurrencyKey] INT )WITH ( CLUSTERED COLUMNSTORE INDEX, DISTRIBUTION = ROUND_ROBIN ); CREATE TABLE [dbo].[DimProductCategory] ( [ProductCategoryKey] INT PRIMARY KEY NONCLUSTERED NOT ENFORCED NOT NULL, [ProductCategoryAlternateKey] INT, [EnglishProductCategoryName] NVARCHAR(50) NOT NULL, [SpanishProductCategoryName] NVARCHAR(50) NOT NULL, [FrenchProductCategoryName] NVARCHAR(50) NOT NULL )WITH ( CLUSTERED COLUMNSTORE INDEX, DISTRIBUTION = ROUND_ROBIN ); CREATE TABLE [dbo].[DimProductSubcategory] ( [ProductSubcategoryKey] INT PRIMARY KEY NONCLUSTERED NOT ENFORCED NOT NULL, [ProductSubcategoryAlternateKey] INT, [EnglishProductSubcategoryName] NVARCHAR(50) NOT NULL, [SpanishProductSubcategoryName] NVARCHAR(50) NOT NULL, [FrenchProductSubcategoryName] NVARCHAR(50) NOT NULL, [ProductCategoryKey] INT )WITH ( CLUSTERED COLUMNSTORE INDEX, DISTRIBUTION = ROUND_ROBIN ); CREATE TABLE [dbo].[DimProduct] ( [ProductKey] INT PRIMARY KEY NONCLUSTERED NOT ENFORCED NOT NULL, [ProductAlternateKey] NVARCHAR(25), [ProductSubcategoryKey] INT, [WeightUnitMeasureCode] NCHAR(3), [SizeUnitMeasureCode] NCHAR(3), [EnglishProductName] NVARCHAR(50) NOT NULL, [SpanishProductName] NVARCHAR(50), [FrenchProductName] NVARCHAR(50), [StandardCost] MONEY, [FinishedGoodsFlag] BIT NOT NULL, [Color] NVARCHAR(15) NOT NULL, [SafetyStockLevel] SMALLINT, [ReorderPoint] SMALLINT, [ListPrice] MONEY, [Size] NVARCHAR(50), [SizeRange] NVARCHAR(50), [Weight] FLOAT, [DaysToManufacture] INT, [ProductLine] NCHAR(2), [DealerPrice] MONEY, [Class] NCHAR(2), [Style] NCHAR(2), [ModelName] NVARCHAR(50), [EnglishDescription] NVARCHAR(400), [FrenchDescription] NVARCHAR(400), [ChineseDescription] NVARCHAR(400), [ArabicDescription] NVARCHAR(400), [HebrewDescription] NVARCHAR(400), [ThaiDescription] NVARCHAR(400), [GermanDescription] NVARCHAR(400), [JapaneseDescription] NVARCHAR(400), [TurkishDescription] NVARCHAR(400), [StartDate] DATETIME, [EndDate] DATETIME, [Status] NVARCHAR(7) )WITH ( CLUSTERED COLUMNSTORE INDEX, DISTRIBUTION = ROUND_ROBIN ); CREATE TABLE [dbo].[DimPromotion] ( [PromotionKey] INT PRIMARY KEY NONCLUSTERED NOT ENFORCED NOT NULL, [PromotionAlternateKey] INT, [EnglishPromotionName] NVARCHAR(255), [SpanishPromotionName] NVARCHAR(255), [FrenchPromotionName] NVARCHAR(255), [DiscountPct] FLOAT, [EnglishPromotionType] NVARCHAR(50), [SpanishPromotionType] NVARCHAR(50), [FrenchPromotionType] NVARCHAR(50), [EnglishPromotionCategory] NVARCHAR(50), [SpanishPromotionCategory] NVARCHAR(50), [FrenchPromotionCategory] NVARCHAR(50), [StartDate] DATETIME NOT NULL, [EndDate] DATETIME, [MinQty] INT, [MaxQty] INT )WITH ( CLUSTERED COLUMNSTORE INDEX, DISTRIBUTION = ROUND_ROBIN ); CREATE TABLE [dbo].[DimReseller] ( [ResellerKey] INT PRIMARY KEY NONCLUSTERED NOT ENFORCED NOT NULL, [GeographyKey] INT, [ResellerAlternateKey] NVARCHAR(15), [Phone] NVARCHAR(25), [BusinessType] VARCHAR(20) NOT NULL, [ResellerName] NVARCHAR(50) NOT NULL, [NumberEmployees] INT, [OrderFrequency] CHAR(1), [OrderMonth] TINYINT, [FirstOrderYear] INT, [LastOrderYear] INT, [ProductLine] NVARCHAR(50), [AddressLine1] NVARCHAR(60), [AddressLine2] NVARCHAR(60), [AnnualSales] MONEY, [BankName] NVARCHAR(50), [MinPaymentType] TINYINT, [MinPaymentAmount] MONEY, [AnnualRevenue] MONEY, [YearOpened] INT )WITH ( CLUSTERED COLUMNSTORE INDEX, DISTRIBUTION = ROUND_ROBIN ); CREATE TABLE [dbo].[DimSalesReason] ( [SalesReasonKey] INT PRIMARY KEY NONCLUSTERED NOT ENFORCED NOT NULL, [SalesReasonAlternateKey] INT NOT NULL, [SalesReasonName] NVARCHAR(50) NOT NULL, [SalesReasonReasonType] NVARCHAR(50) NOT NULL )WITH ( CLUSTERED COLUMNSTORE INDEX, DISTRIBUTION = ROUND_ROBIN ); CREATE TABLE [dbo].[DimScenario] ( [ScenarioKey] INT PRIMARY KEY NONCLUSTERED NOT ENFORCED NOT NULL, [ScenarioName] NVARCHAR(50) )WITH ( CLUSTERED COLUMNSTORE INDEX, DISTRIBUTION = ROUND_ROBIN ); CREATE TABLE [dbo].[FactCallCenter] ( [FactCallCenterID] INT PRIMARY KEY NONCLUSTERED NOT ENFORCED NOT NULL, [DateKey] INT NOT NULL, [WageType] NVARCHAR(15) NOT NULL, [Shift] NVARCHAR(20) NOT NULL, [LevelOneOperators] SMALLINT NOT NULL, [LevelTwoOperators] SMALLINT NOT NULL, [TotalOperators] SMALLINT NOT NULL, [Calls] INT NOT NULL, [AutomaticResponses] INT NOT NULL, [Orders] INT NOT NULL, [IssuesRaised] SMALLINT NOT NULL, [AverageTimePerIssue] SMALLINT NOT NULL, [ServiceGrade] FLOAT NOT NULL )WITH ( CLUSTERED COLUMNSTORE INDEX, DISTRIBUTION = ROUND_ROBIN ); CREATE TABLE [dbo].[FactCurrencyRate] ( [CurrencyKey] INT PRIMARY KEY NONCLUSTERED NOT ENFORCED NOT NULL, [DateKey] INT NOT NULL, [AverageRate] FLOAT NOT NULL, [EndOfDayRate] FLOAT NOT NULL )WITH ( CLUSTERED COLUMNSTORE INDEX, DISTRIBUTION = ROUND_ROBIN ); CREATE TABLE [dbo].[FactFinance] ( [FinanceKey] INT PRIMARY KEY NONCLUSTERED NOT ENFORCED NOT NULL, [DateKey] INT NOT NULL, [OrganizationKey] INT NOT NULL, [DepartmentGroupKey] INT NOT NULL, [ScenarioKey] INT NOT NULL, [AccountKey] INT NOT NULL, [Amount] FLOAT NOT NULL )WITH ( CLUSTERED COLUMNSTORE INDEX, DISTRIBUTION = ROUND_ROBIN ); CREATE TABLE [dbo].[FactInternetSalesReason] ( [SalesOrderNumber] NVARCHAR(20) PRIMARY KEY NONCLUSTERED NOT ENFORCED NOT NULL, [SalesOrderLineNumber] TINYINT NOT NULL, [SalesReasonKey] INT NOT NULL )WITH ( CLUSTERED COLUMNSTORE INDEX, DISTRIBUTION = ROUND_ROBIN ); CREATE TABLE [dbo].[FactInternetSales] ( [ProductKey] INT PRIMARY KEY NONCLUSTERED NOT ENFORCED NOT NULL, [OrderDateKey] INT NOT NULL, [DueDateKey] INT NOT NULL, [ShipDateKey] INT NOT NULL, [CustomerKey] INT NOT NULL, [PromotionKey] INT NOT NULL, [CurrencyKey] INT NOT NULL, [SalesTerritoryKey] INT NOT NULL, [SalesOrderNumber] NVARCHAR(20) NOT NULL, [SalesOrderLineNumber] TINYINT NOT NULL, [RevisionNumber] TINYINT NOT NULL, [OrderQuantity] SMALLINT NOT NULL, [UnitPrice] MONEY NOT NULL, [ExtendedAmount] MONEY NOT NULL, [UnitPriceDiscountPct] FLOAT NOT NULL, [DiscountAmount] FLOAT NOT NULL, [ProductStandardCost] MONEY NOT NULL, [TotalProductCost] MONEY NOT NULL, [SalesAmount] MONEY NOT NULL, [TaxAmt] MONEY NOT NULL, [Freight] MONEY NOT NULL, [CarrierTrackingNumber] NVARCHAR(25), [CustomerPONumber] NVARCHAR(25) )WITH ( CLUSTERED COLUMNSTORE INDEX, DISTRIBUTION = ROUND_ROBIN ); CREATE TABLE [dbo].[FactResellerSales] ( [ProductKey] INT PRIMARY KEY NONCLUSTERED NOT ENFORCED NOT NULL, [OrderDateKey] INT NOT NULL, [DueDateKey] INT NOT NULL, [ShipDateKey] INT NOT NULL, [ResellerKey] INT NOT NULL, [EmployeeKey] INT NOT NULL, [PromotionKey] INT NOT NULL, [CurrencyKey] INT NOT NULL, [SalesTerritoryKey] INT NOT NULL, [SalesOrderNumber] NVARCHAR(20) NOT NULL, [SalesOrderLineNumber] TINYINT NOT NULL, [RevisionNumber] TINYINT, [OrderQuantity] SMALLINT, [UnitPrice] MONEY, [ExtendedAmount] MONEY, [UnitPriceDiscountPct] FLOAT, [DiscountAmount] FLOAT, [ProductStandardCost] MONEY, [TotalProductCost] MONEY, [SalesAmount] MONEY, [TaxAmt] MONEY, [Freight] MONEY, [CarrierTrackingNumber] NVARCHAR(25), [CustomerPONumber] NVARCHAR(25) )WITH ( CLUSTERED COLUMNSTORE INDEX, DISTRIBUTION = ROUND_ROBIN ); CREATE TABLE [dbo].[FactSalesQuota] ( [SalesQuotaKey] INT PRIMARY KEY NONCLUSTERED NOT ENFORCED NOT NULL, [EmployeeKey] INT NOT NULL, [DateKey] INT NOT NULL, [CalendarYear] SMALLINT NOT NULL, [CalendarQuarter] TINYINT NOT NULL, [SalesAmountQuota] MONEY NOT NULL )WITH ( CLUSTERED COLUMNSTORE INDEX, DISTRIBUTION = ROUND_ROBIN ); CREATE TABLE [dbo].[FactSurveyResponse] ( [SurveyResponseKey] INT PRIMARY KEY NONCLUSTERED NOT ENFORCED NOT NULL, [DateKey] INT NOT NULL, [CustomerKey] INT NOT NULL, [ProductCategoryKey] INT NOT NULL, [EnglishProductCategoryName] NVARCHAR(50) NOT NULL, [ProductSubcategoryKey] INT NOT NULL, [EnglishProductSubcategoryName] NVARCHAR(50) NOT NULL )WITH ( CLUSTERED COLUMNSTORE INDEX, DISTRIBUTION = ROUND_ROBIN ); CREATE TABLE [dbo].[ProspectiveBuyer] ( [ProspectiveBuyerKey] INT PRIMARY KEY NONCLUSTERED NOT ENFORCED NOT NULL, [ProspectAlternateKey] NVARCHAR(15), [FirstName] NVARCHAR(50), [MiddleName] NVARCHAR(50), [LastName] NVARCHAR(50), [BirthDate] DATETIME, [MaritalStatus] NCHAR(1), [Gender] NVARCHAR(1), [EmailAddress] NVARCHAR(50), [YearlyIncome] MONEY, [TotalChildren] TINYINT, [NumberChildrenAtHome] TINYINT, [Education] NVARCHAR(40), [Occupation] NVARCHAR(100), [HouseOwnerFlag] NCHAR(1), [NumberCarsOwned] TINYINT, [AddressLine1] NVARCHAR(120), [AddressLine2] NVARCHAR(120), [City] NVARCHAR(30), [StateProvinceCode] NVARCHAR(3), [PostalCode] NVARCHAR(15), [Phone] NVARCHAR(20), [Salutation] NVARCHAR(8), [Unknown] INT )WITH ( CLUSTERED COLUMNSTORE INDEX, DISTRIBUTION = ROUND_ROBIN ); CREATE VIEW [dbo].[AggregateSales] AS SELECT FIS.SalesAmount, DG.PostalCode, DC.YearlyIncome AS CustomerIncome, DD.FullDateAlternateKey AS OrderDate FROM FactInternetSales AS FIS JOIN DimCustomer AS DC ON (FIS.CustomerKey = DC.CustomerKey) JOIN DimDate AS DD ON (FIS.OrderDateKey = DD.DateKey) JOIN DimGeography AS DG ON (DC.GeographyKey = DG.GeographyKey); ; CREATE VIEW [dbo].[SalesByCustomer] AS SELECT fis.SalesAmount, dst.Gender, dst.NumberCarsOwned, dst.YearlyIncome AS CustomerYearlyIncome, dst.TotalChildren FROM FactInternetSales AS fis LEFT OUTER JOIN DimCustomer AS dst ON (fis.CustomerKey=dst.CustomerKey); ; CREATE VIEW [dbo].[vDMPrep] AS SELECT pc.[EnglishProductCategoryName] ,Coalesce(p.[ModelName], p.[EnglishProductName]) AS [Model] ,c.[CustomerKey] ,s.[SalesTerritoryGroup] AS [Region] ,CASE WHEN Month(GetDate()) < Month(c.[BirthDate]) THEN DateDiff(yy,c.[BirthDate],GetDate()) - 1 WHEN Month(GetDate()) = Month(c.[BirthDate]) AND Day(GetDate()) < Day(c.[BirthDate]) THEN DateDiff(yy,c.[BirthDate],GetDate()) - 1 ELSE DateDiff(yy,c.[BirthDate],GetDate()) END AS [Age] ,CASE WHEN c.[YearlyIncome] < 40000 THEN 'Low' WHEN c.[YearlyIncome] > 60000 THEN 'High' ELSE 'Moderate' END AS [IncomeGroup] ,d.[CalendarYear] ,d.[FiscalYear] ,d.[MonthNumberOfYear] AS [Month] ,f.[SalesOrderNumber] AS [OrderNumber] ,f.SalesOrderLineNumber AS LineNumber ,f.OrderQuantity AS Quantity ,f.ExtendedAmount AS Amount FROM [dbo].[FactInternetSales] f INNER JOIN [dbo].[DimDate] d ON f.[OrderDateKey] = d.[DateKey] INNER JOIN [dbo].[DimProduct] p ON f.[ProductKey] = p.[ProductKey] INNER JOIN [dbo].[DimProductSubcategory] psc ON p.[ProductSubcategoryKey] = psc.[ProductSubcategoryKey] INNER JOIN [dbo].[DimProductCategory] pc ON psc.[ProductCategoryKey] = pc.[ProductCategoryKey] INNER JOIN [dbo].[DimCustomer] c ON f.[CustomerKey] = c.[CustomerKey] INNER JOIN [dbo].[DimGeography] g ON c.[GeographyKey] = g.[GeographyKey] INNER JOIN [dbo].[DimSalesTerritory] s ON g.[SalesTerritoryKey] = s.[SalesTerritoryKey]; ; CREATE VIEW [dbo].[SalesByDate] AS SELECT fis.SalesAmount, dst.EnglishMonthName, dst.CalendarYear FROM FactInternetSales AS fis LEFT OUTER JOIN DimDate AS dst ON (fis.OrderDateKey=dst.DateKey); ; CREATE VIEW [dbo].[SalesByRegion] AS SELECT fis.SalesAmount, dst.PostalCode, dst.StateProvinceCode FROM FactInternetSales AS fis LEFT OUTER JOIN DimGeography AS dst ON (fis.SalesTerritoryKey=dst.SalesTerritoryKey); ; CREATE VIEW [dbo].[SalesByCategory] AS SELECT fis.SalesAmount, dst.ProductLine FROM FactInternetSales AS fis LEFT OUTER JOIN DimProduct AS dst ON (fis.ProductKey=dst.ProductKey); ;
| Property | Value |
| Name | fk DimAccount.AccountKey to FactFinance.AccountKey |
| Description | |
| Parent Table | DimAccount |
| Parent Column | AccountKey |
| Parent Cardinality | 1 |
| Child Table | FactFinance |
| Child Column | AccountKey |
| Child Cardinality | 0..n |
| Comments |
| Parent Table | Parent Column |
| DimAccount | AccountKey |
| Child Table | Child Column |
| DimAccount | ParentAccountCodeAlternateKey |
| Property | Value |
| Name | fk DimAccount.ParentAccountCodeAlternateKey to DimAccount.AccountKey |
| Description | |
| Parent Table | DimAccount |
| Parent Column | AccountKey |
| Parent Cardinality | 1 |
| Child Table | DimAccount |
| Child Column | ParentAccountCodeAlternateKey |
| Child Cardinality | 1..n |
| Comments |
| Property | Value |
| Name | fk DimAccount.ParentAccountKey to DimAccount.AccountKey |
| Description | |
| Parent Table | DimAccount |
| Parent Column | AccountKey |
| Parent Cardinality | 1 |
| Child Table | DimAccount |
| Child Column | ParentAccountKey |
| Child Cardinality | 1..n |
| Comments |
| Parent Table | Parent Column |
| DimCurrency | CurrencyKey |
| Child Table | Child Column |
| FactCurrencyRate | CurrencyKey |
| Property | Value |
| Name | fk DimCurrency.CurrencyKey to FactCurrencyRate.CurrencyKey |
| Description | |
| Parent Table | DimCurrency |
| Parent Column | CurrencyKey |
| Parent Cardinality | 1 |
| Child Table | FactCurrencyRate |
| Child Column | CurrencyKey |
| Child Cardinality | 0..n |
| Comments |
| Property | Value |
| Name | fk DimCustomer.GeographyKey to DimGeography.GeographyKey |
| Description | |
| Parent Table | DimGeography |
| Parent Column | GeographyKey |
| Parent Cardinality | 1 |
| Child Table | DimCustomer |
| Child Column | GeographyKey |
| Child Cardinality | 1..n |
| Comments |
| Property | Value |
| Name | fk DimDate.DateKey to FactCallCenter.DateKey |
| Description | |
| Parent Table | DimDate |
| Parent Column | DateKey |
| Parent Cardinality | 1 |
| Child Table | FactCallCenter |
| Child Column | DateKey |
| Child Cardinality | 0..n |
| Comments |
| Property | Value |
| Name | fk DimDate.DateKey to FactCurrencyRate.DateKey |
| Description | |
| Parent Table | DimDate |
| Parent Column | DateKey |
| Parent Cardinality | 1 |
| Child Table | FactCurrencyRate |
| Child Column | DateKey |
| Child Cardinality | 0..n |
| Comments |
| Property | Value |
| Name | fk DimDate.DateKey to FactFinance.DateKey |
| Description | |
| Parent Table | DimDate |
| Parent Column | DateKey |
| Parent Cardinality | 1 |
| Child Table | FactFinance |
| Child Column | DateKey |
| Child Cardinality | 0..n |
| Comments |
| Parent Table | Parent Column |
| DimDepartmentGroup | DepartmentGroupKey |
| Child Table | Child Column |
| DimDepartmentGroup | ParentDepartmentGroupKey |
| Property | Value |
| Name | fk DimDepartmentGroup.DepartmentGroupKey to DimDepartmentGroup.ParentDepartmentGroupKey |
| Description | |
| Parent Table | DimDepartmentGroup |
| Parent Column | DepartmentGroupKey |
| Parent Cardinality | 1 |
| Child Table | DimDepartmentGroup |
| Child Column | ParentDepartmentGroupKey |
| Child Cardinality | 0..n |
| Comments |
| Parent Table | Parent Column |
| DimDepartmentGroup | DepartmentGroupKey |
| Child Table | Child Column |
| FactFinance | DepartmentGroupKey |
| Property | Value |
| Name | fk DimDepartmentGroup.DepartmentGroupKey to FactFinance.DepartmentGroupKey |
| Description | |
| Parent Table | DimDepartmentGroup |
| Parent Column | DepartmentGroupKey |
| Parent Cardinality | 1 |
| Child Table | FactFinance |
| Child Column | DepartmentGroupKey |
| Child Cardinality | 0..n |
| Comments |
| Parent Table | Parent Column |
| DimEmployee | EmployeeKey |
| Child Table | Child Column |
| DimEmployee | ParentEmployeeKey |
| Property | Value |
| Name | fk DimEmployee.ParentEmployeeKey to DimEmployee.EmployeeKey |
| Description | |
| Parent Table | DimEmployee |
| Parent Column | EmployeeKey |
| Parent Cardinality | 1 |
| Child Table | DimEmployee |
| Child Column | ParentEmployeeKey |
| Child Cardinality | 1..n |
| Comments |
| Parent Table | Parent Column |
| DimSalesTerritory | SalesTerritoryKey |
| Child Table | Child Column |
| DimEmployee | SalesTerritoryKey |
| Property | Value |
| Name | fk DimEmployee.SalesTerritoryKey to DimSalesTerritory.SalesTerritoryKey |
| Description | |
| Parent Table | DimSalesTerritory |
| Parent Column | SalesTerritoryKey |
| Parent Cardinality | 1 |
| Child Table | DimEmployee |
| Child Column | SalesTerritoryKey |
| Child Cardinality | 1..n |
| Comments |
| Parent Table | Parent Column |
| DimSalesTerritory | SalesTerritoryKey |
| Child Table | Child Column |
| DimGeography | SalesTerritoryKey |
| Property | Value |
| Name | fk DimGeography.SalesTerritoryKey to DimSalesTerritory.SalesTerritoryKey |
| Description | |
| Parent Table | DimSalesTerritory |
| Parent Column | SalesTerritoryKey |
| Parent Cardinality | 1 |
| Child Table | DimGeography |
| Child Column | SalesTerritoryKey |
| Child Cardinality | 1..n |
| Comments |
| Parent Table | Parent Column |
| DimCurrency | CurrencyKey |
| Child Table | Child Column |
| DimOrganization | CurrencyKey |
| Property | Value |
| Name | fk DimOrganization.CurrencyKey to DimCurrency.CurrencyKey |
| Description | |
| Parent Table | DimCurrency |
| Parent Column | CurrencyKey |
| Parent Cardinality | 1 |
| Child Table | DimOrganization |
| Child Column | CurrencyKey |
| Child Cardinality | 1..n |
| Comments |
| Parent Table | Parent Column |
| DimOrganization | OrganizationKey |
| Child Table | Child Column |
| FactFinance | OrganizationKey |
| Property | Value |
| Name | fk DimOrganization.OrganizationKey to FactFinance.OrganizationKey |
| Description | |
| Parent Table | DimOrganization |
| Parent Column | OrganizationKey |
| Parent Cardinality | 1 |
| Child Table | FactFinance |
| Child Column | OrganizationKey |
| Child Cardinality | 0..n |
| Comments |
| Parent Table | Parent Column |
| DimOrganization | OrganizationKey |
| Child Table | Child Column |
| DimOrganization | ParentOrganizationKey |
| Property | Value |
| Name | fk DimOrganization.ParentOrganizationKey to DimOrganization.OrganizationKey |
| Description | |
| Parent Table | DimOrganization |
| Parent Column | OrganizationKey |
| Parent Cardinality | 1 |
| Child Table | DimOrganization |
| Child Column | ParentOrganizationKey |
| Child Cardinality | 1..n |
| Comments |
| Parent Table | Parent Column |
| DimProductSubcategory | ProductSubcategoryKey |
| Child Table | Child Column |
| DimProduct | ProductSubcategoryKey |
| Property | Value |
| Name | fk DimProduct.ProductSubcategoryKey to DimProductSubcategory.ProductSubcategoryKey |
| Description | |
| Parent Table | DimProductSubcategory |
| Parent Column | ProductSubcategoryKey |
| Parent Cardinality | 1 |
| Child Table | DimProduct |
| Child Column | ProductSubcategoryKey |
| Child Cardinality | 1..n |
| Comments |
| Parent Table | Parent Column |
| DimProductCategory | ProductCategoryKey |
| Child Table | Child Column |
| DimProductSubcategory | ProductCategoryKey |
| Property | Value |
| Name | fk DimProductSubcategory.ProductCategoryKey to DimProductCategory.ProductCategoryKey |
| Description | |
| Parent Table | DimProductCategory |
| Parent Column | ProductCategoryKey |
| Parent Cardinality | 1 |
| Child Table | DimProductSubcategory |
| Child Column | ProductCategoryKey |
| Child Cardinality | 1..n |
| Comments |
| Property | Value |
| Name | fk DimReseller.GeographyKey to DimGeography.GeographyKey |
| Description | |
| Parent Table | DimGeography |
| Parent Column | GeographyKey |
| Parent Cardinality | 1 |
| Child Table | DimReseller |
| Child Column | GeographyKey |
| Child Cardinality | 1..n |
| Comments |
| Property | Value |
| Name | fk DimScenario.ScenarioKey to FactFinance.ScenarioKey |
| Description | |
| Parent Table | DimScenario |
| Parent Column | ScenarioKey |
| Parent Cardinality | 1 |
| Child Table | FactFinance |
| Child Column | ScenarioKey |
| Child Cardinality | 0..n |
| Comments |
| Parent Table | Parent Column |
| DimCurrency | CurrencyKey |
| Child Table | Child Column |
| FactInternetSales | CurrencyKey |
| Property | Value |
| Name | fk FactInternetSales.CurrencyKey to DimCurrency.CurrencyKey |
| Description | |
| Parent Table | DimCurrency |
| Parent Column | CurrencyKey |
| Parent Cardinality | 1 |
| Child Table | FactInternetSales |
| Child Column | CurrencyKey |
| Child Cardinality | 1..n |
| Comments |
| Parent Table | Parent Column |
| DimCustomer | CustomerKey |
| Child Table | Child Column |
| FactInternetSales | CustomerKey |
| Property | Value |
| Name | fk FactInternetSales.CustomerKey to DimCustomer.CustomerKey |
| Description | |
| Parent Table | DimCustomer |
| Parent Column | CustomerKey |
| Parent Cardinality | 1 |
| Child Table | FactInternetSales |
| Child Column | CustomerKey |
| Child Cardinality | 1..n |
| Comments |
| Property | Value |
| Name | fk FactInternetSales.DueDateKey to DimDate.DateKey |
| Description | |
| Parent Table | DimDate |
| Parent Column | DateKey |
| Parent Cardinality | 1 |
| Child Table | FactInternetSales |
| Child Column | DueDateKey |
| Child Cardinality | 1..n |
| Comments |
| Parent Table | Parent Column |
| DimPromotion | PromotionKey |
| Child Table | Child Column |
| FactInternetSales | PromotionKey |
| Property | Value |
| Name | fk FactInternetSales.PromotionKey to DimPromotion.PromotionKey |
| Description | |
| Parent Table | DimPromotion |
| Parent Column | PromotionKey |
| Parent Cardinality | 1 |
| Child Table | FactInternetSales |
| Child Column | PromotionKey |
| Child Cardinality | 1..n |
| Comments |
| Parent Table | Parent Column |
| FactInternetSalesReason | SalesOrderNumber |
| Child Table | Child Column |
| FactInternetSales | SalesOrderNumber |
| Property | Value |
| Name | fk FactInternetSales.SalesOrderNumber to FactInternetSalesReason.SalesOrderNumber |
| Description | |
| Parent Table | FactInternetSalesReason |
| Parent Column | SalesOrderNumber |
| Parent Cardinality | 1 |
| Child Table | FactInternetSales |
| Child Column | SalesOrderNumber |
| Child Cardinality | 1..n |
| Comments |
| Parent Table | Parent Column |
| DimSalesTerritory | SalesTerritoryKey |
| Child Table | Child Column |
| FactInternetSales | SalesTerritoryKey |
| Property | Value |
| Name | fk FactInternetSales.SalesTerritoryKey to DimSalesTerritory.SalesTerritoryKey |
| Description | |
| Parent Table | DimSalesTerritory |
| Parent Column | SalesTerritoryKey |
| Parent Cardinality | 1 |
| Child Table | FactInternetSales |
| Child Column | SalesTerritoryKey |
| Child Cardinality | 1..n |
| Comments |
| Property | Value |
| Name | fk FactInternetSales.ShipDateKey to DimDate.DateKey |
| Description | |
| Parent Table | DimDate |
| Parent Column | DateKey |
| Parent Cardinality | 1 |
| Child Table | FactInternetSales |
| Child Column | ShipDateKey |
| Child Cardinality | 1..n |
| Comments |
| Parent Table | Parent Column |
| DimSalesReason | SalesReasonKey |
| Child Table | Child Column |
| FactInternetSalesReason | SalesReasonKey |
| Property | Value |
| Name | fk FactInternetSalesReason.SalesReasonKey to DimSalesReason.SalesReasonKey |
| Description | |
| Parent Table | DimSalesReason |
| Parent Column | SalesReasonKey |
| Parent Cardinality | 1 |
| Child Table | FactInternetSalesReason |
| Child Column | SalesReasonKey |
| Child Cardinality | 1..n |
| Comments |
| Parent Table | Parent Column |
| DimCurrency | CurrencyKey |
| Child Table | Child Column |
| FactResellerSales | CurrencyKey |
| Property | Value |
| Name | fk FactResellerSales.CurrencyKey to DimCurrency.CurrencyKey |
| Description | |
| Parent Table | DimCurrency |
| Parent Column | CurrencyKey |
| Parent Cardinality | 1 |
| Child Table | FactResellerSales |
| Child Column | CurrencyKey |
| Child Cardinality | 1..n |
| Comments |
| Property | Value |
| Name | fk FactResellerSales.DueDateKey to DimDate.DateKey |
| Description | |
| Parent Table | DimDate |
| Parent Column | DateKey |
| Parent Cardinality | 1 |
| Child Table | FactResellerSales |
| Child Column | DueDateKey |
| Child Cardinality | 1..n |
| Comments |
| Parent Table | Parent Column |
| DimEmployee | EmployeeKey |
| Child Table | Child Column |
| FactResellerSales | EmployeeKey |
| Property | Value |
| Name | fk FactResellerSales.EmployeeKey to DimEmployee.EmployeeKey |
| Description | |
| Parent Table | DimEmployee |
| Parent Column | EmployeeKey |
| Parent Cardinality | 1 |
| Child Table | FactResellerSales |
| Child Column | EmployeeKey |
| Child Cardinality | 1..n |
| Comments |
| Parent Table | Parent Column |
| DimPromotion | PromotionKey |
| Child Table | Child Column |
| FactResellerSales | PromotionKey |
| Property | Value |
| Name | fk FactResellerSales.PromotionKey to DimPromotion.PromotionKey |
| Description | |
| Parent Table | DimPromotion |
| Parent Column | PromotionKey |
| Parent Cardinality | 1 |
| Child Table | FactResellerSales |
| Child Column | PromotionKey |
| Child Cardinality | 1..n |
| Comments |
| Parent Table | Parent Column |
| DimReseller | ResellerKey |
| Child Table | Child Column |
| FactResellerSales | ResellerKey |
| Property | Value |
| Name | fk FactResellerSales.ResellerKey to DimReseller.ResellerKey |
| Description | |
| Parent Table | DimReseller |
| Parent Column | ResellerKey |
| Parent Cardinality | 1 |
| Child Table | FactResellerSales |
| Child Column | ResellerKey |
| Child Cardinality | 1..n |
| Comments |
| Parent Table | Parent Column |
| FactInternetSalesReason | SalesOrderNumber |
| Child Table | Child Column |
| FactResellerSales | SalesOrderNumber |
| Property | Value |
| Name | fk FactResellerSales.SalesOrderNumber to FactInternetSalesReason.SalesOrderNumber |
| Description | |
| Parent Table | FactInternetSalesReason |
| Parent Column | SalesOrderNumber |
| Parent Cardinality | 1 |
| Child Table | FactResellerSales |
| Child Column | SalesOrderNumber |
| Child Cardinality | 1..n |
| Comments |
| Parent Table | Parent Column |
| DimSalesTerritory | SalesTerritoryKey |
| Child Table | Child Column |
| FactResellerSales | SalesTerritoryKey |
| Property | Value |
| Name | fk FactResellerSales.SalesTerritoryKey to DimSalesTerritory.SalesTerritoryKey |
| Description | |
| Parent Table | DimSalesTerritory |
| Parent Column | SalesTerritoryKey |
| Parent Cardinality | 1 |
| Child Table | FactResellerSales |
| Child Column | SalesTerritoryKey |
| Child Cardinality | 1..n |
| Comments |
| Property | Value |
| Name | fk FactResellerSales.ShipDateKey to DimDate.DateKey |
| Description | |
| Parent Table | DimDate |
| Parent Column | DateKey |
| Parent Cardinality | 1 |
| Child Table | FactResellerSales |
| Child Column | ShipDateKey |
| Child Cardinality | 1..n |
| Comments |
| Property | Value |
| Name | fk FactSalesQuota.DateKey to DimDate.DateKey |
| Description | |
| Parent Table | DimDate |
| Parent Column | DateKey |
| Parent Cardinality | 1 |
| Child Table | FactSalesQuota |
| Child Column | DateKey |
| Child Cardinality | 1..n |
| Comments |
| Property | Value |
| Name | fk FactSalesQuota.EmployeeKey to DimEmployee.EmployeeKey |
| Description | |
| Parent Table | DimEmployee |
| Parent Column | EmployeeKey |
| Parent Cardinality | 1 |
| Child Table | FactSalesQuota |
| Child Column | EmployeeKey |
| Child Cardinality | 1..n |
| Comments |
| Parent Table | Parent Column |
| DimCustomer | CustomerKey |
| Child Table | Child Column |
| FactSurveyResponse | CustomerKey |
| Property | Value |
| Name | fk FactSurveyResponse.CustomerKey to DimCustomer.CustomerKey |
| Description | |
| Parent Table | DimCustomer |
| Parent Column | CustomerKey |
| Parent Cardinality | 1 |
| Child Table | FactSurveyResponse |
| Child Column | CustomerKey |
| Child Cardinality | 1..n |
| Comments |
| Property | Value |
| Name | fk FactSurveyResponse.DateKey to DimDate.DateKey |
| Description | |
| Parent Table | DimDate |
| Parent Column | DateKey |
| Parent Cardinality | 1 |
| Child Table | FactSurveyResponse |
| Child Column | DateKey |
| Child Cardinality | 1..n |
| Comments |
| Parent Table | Parent Column |
| DimProductCategory | ProductCategoryKey |
| Child Table | Child Column |
| FactSurveyResponse | ProductCategoryKey |
| Property | Value |
| Name | fk FactSurveyResponse.ProductCategoryKey to DimProductCategory.ProductCategoryKey |
| Description | |
| Parent Table | DimProductCategory |
| Parent Column | ProductCategoryKey |
| Parent Cardinality | 1 |
| Child Table | FactSurveyResponse |
| Child Column | ProductCategoryKey |
| Child Cardinality | 1..n |
| Comments |
| Parent Table | Parent Column |
| DimProductSubcategory | ProductSubcategoryKey |
| Child Table | Child Column |
| FactSurveyResponse | ProductSubcategoryKey |
| Property | Value |
| Name | fk FactSurveyResponse.ProductSubcategoryKey to DimProductSubcategory.ProductSubcategoryKey |
| Description | |
| Parent Table | DimProductSubcategory |
| Parent Column | ProductSubcategoryKey |
| Parent Cardinality | 1 |
| Child Table | FactSurveyResponse |
| Child Column | ProductSubcategoryKey |
| Child Cardinality | 1..n |
| Comments |